Skip to content

Commit

Permalink
change parameter on validating minimum bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
perfogic committed Jul 31, 2024
1 parent 2927f8e commit d1bc8d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/page/bridge/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const FWD_AMOUNT = toNano(0.15);
const TON_MESSAGE_VALID_UNTIL = 100000;
const BRIDGE_TON_TO_ORAI_MINIMUM_GAS = toNano(1);
const EXTERNAL_MESSAGE_FEE = toNano(0.01);
const MINIMUM_BRIDGE_PER_USD = 0.001;
const MINIMUM_BRIDGE_PER_USD = 10;

export {
FWD_AMOUNT,
Expand Down
2 changes: 1 addition & 1 deletion components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const Bridge = () => {
.toNumber();

const minimumAmount =
Math.ceil((MINIMUM_BRIDGE_PER_USD * amount * 1000) / usdPrice) / 1000;
Math.ceil((MINIMUM_BRIDGE_PER_USD * amount * 100) / usdPrice) / 100;

if (amount < minimumAmount) {
throw Error(`Minimum bridge is ${minimumAmount} ${token.symbol}`);
Expand Down

0 comments on commit d1bc8d6

Please sign in to comment.