Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:hop-protocol/hop into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Nov 4, 2024
2 parents 5e9ad55 + c6f318d commit b50bdc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/frontend",
"version": "0.0.26",
"version": "0.0.27",
"description": "Hop Protocol Frontend",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/sdk",
"version": "0.0.41",
"version": "0.0.40",
"description": "The v1 Hop Protocol TypeScript SDK",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions packages/sdk/src/HopBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,9 @@ export class HopBridge extends Base {
this.calcFromHTokenAmountMulticall(destinationChain, [hTokenAmount, bonderFeeRelative, destinationTxFee]),
this.getBonderFeeAbsolute(sourceChain, destinationChain)
]))

// the bonder fee should be at least the relative fee enforced by the contract
adjustedBonderFee = adjustedBonderFee.gt(bonderFeeRelative) ? adjustedBonderFee : bonderFeeRelative
}

// enforce bonderFeeAbsolute after adjustment
Expand Down

0 comments on commit b50bdc2

Please sign in to comment.