Skip to content

Commit

Permalink
validate bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Sep 27, 2024
1 parent 946053d commit 5025cf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ const Bridge = () => {

if (!token || !amount) throw "Not valid!";

console.log({ amount, deductNativeAmount });
if (Number(deductNativeAmount) < Number(amount))
throw "Insufficient funds";

if (tonNetwork == "mainnet") {
validatePrice(token, amount);
}
Expand Down

0 comments on commit 5025cf4

Please sign in to comment.