Skip to content

Commit

Permalink
Hardcode an estimated fee of 0 for swap claims (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho authored Feb 7, 2024
1 parent 4cc011d commit b91567d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/webapp/src/state/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ const assembleRequest = async ({ assetIn, amount, assetOut }: SwapSlice) => {
// Asset Id should almost certainly be upenumbra,
// may need to indicate native denom in registry
fee: {
amount: toBaseUnit(
BigNumber(amount),
getDisplayDenomExponent(assetIn.value.valueView.value.metadata),
),
assetId: assetIn.value.valueView.value.metadata.penumbraAssetId,
amount: {
hi: 0n,
lo: 0n,
},
},
},
],
Expand Down

0 comments on commit b91567d

Please sign in to comment.