Skip to content

Commit

Permalink
feat(jellyfish-transaction-builder): Fix fees in createVOC (#2139)
Browse files Browse the repository at this point in the history
currently, sending a DFIP via jellyfishSDK fails, cause it sets the
wrong fees.
Fixes BirthdayResearch/defichain-wallet#3946

---------

Signed-off-by: kuegi <[email protected]>
Co-authored-by: Pierre Gee <[email protected]>
Co-authored-by: Lyka Labrada <[email protected]>
  • Loading branch information
3 people authored Aug 21, 2023
1 parent 214183b commit 8b778f7
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ export class TxnBuilderGovernance extends P2WPKHTxnBuilder {
}
let creationFee = new BigNumber('5')
if (this.network.name === 'mainnet') {
creationFee = new BigNumber('100')
}
if (this.network.name === 'testnet') {
creationFee = new BigNumber('50')
}
if (createVoc.options === 1) {
if (createVoc.options === 1) {
creationFee = new BigNumber('5000')
} else {
creationFee = new BigNumber('50')
}
} else if (this.network.name === 'testnet') {
if (createVoc.options === 1) {
creationFee = new BigNumber('50')
} else {
creationFee = new BigNumber('50')
}
} else if (createVoc.options === 1) {
creationFee = new BigNumber('10000')
}
return await this.createDeFiTx(
Expand Down

0 comments on commit 8b778f7

Please sign in to comment.