Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hashxtree committed Dec 18, 2024
1 parent 6df0e72 commit b42aa19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const fee = await bridge.getAdapterFee(destChainId, destReceiver, amount);

```typescript
const absFee = await getDepositAbsoluteCommission(destChainId);
const relFee = Math.ceil(amount / await getDepositRelativeCommission(destChainId)) * 10000;
const relFee = Math.ceil(amount * await getDepositRelativeCommission(destChainId) / 10000);

// lbtcFee is fee chardged, bridged amount will be amount - lbtcFee
// lbtcFee is fee to be chardged, bridged amount will be amount - lbtcFee
const lbtcFee = absFee + relFee;
```

Expand Down

0 comments on commit b42aa19

Please sign in to comment.