feat: apply fee discount for outgoing tx
This commit is contained in:
parent
8128f05ffb
commit
eb33203d26
5 changed files with 136 additions and 3 deletions
20
migrations/1620954224627-add-fee-priority.js
Normal file
20
migrations/1620954224627-add-fee-priority.js
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue