Skip to content

Commit

Permalink
fix repay near precision issueissue
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqian committed Feb 6, 2024
1 parent d203357 commit 395ee7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/actions/repay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function repay({
functionCalls.push({
methodName: ChangeMethodsNearToken[ChangeMethodsNearToken.near_deposit],
gas: new BN("10000000000000"),
attachedDeposit: new BN(toWrapAmount.toFixed(0)),
attachedDeposit: new BN(toWrapAmount.toFixed(0, 2)),
});
}

Expand Down

0 comments on commit 395ee7e

Please sign in to comment.