feat: apply fee discount for outgoing tx

This commit is contained in:
José Oliveira 2021-05-19 13:31:19 +01:00
parent 8128f05ffb
commit eb33203d26
5 changed files with 136 additions and 3 deletions

View file

@ -0,0 +1,20 @@
const { saveConfig, loadLatest } = require('../lib/new-settings-loader')
exports.up = function (next) {
const newConfig = {
wallets_BTC_feeDiscount: 'Default'
}
return loadLatest()
.then(config => {
return saveConfig(newConfig)
.then(() => next())
.catch(err => {
console.log(err.message)
return next(err)
})
})
}
module.exports.down = function (next) {
next()
}