Skip to content

Commit

Permalink
Merge pull request #11 from jpine3528/feature/fee_management
Browse files Browse the repository at this point in the history
update fee to be token basis
  • Loading branch information
jpine3528 authored Feb 6, 2023
2 parents d18263f + bd0099e commit 0cadb9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/sdk/cosmwasm/multiswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MultiswapContract {
return owner;
}

async getFee() {
async getFee(token) {
let wallet = await DirectSecp256k1HdWallet.fromMnemonic(this.mnemonic, {
prefix: "cudos",
});
Expand All @@ -43,7 +43,9 @@ class MultiswapContract {
wallet
);
const fee = await client.queryContractSmart(this.contract, {
fee: {},
fee: {
token,
},
});
console.log("fee", fee);
return fee;
Expand Down

0 comments on commit 0cadb9d

Please sign in to comment.