From 395ee7e20b845fd306654580b3cb4b56c2010854 Mon Sep 17 00:00:00 2001 From: xieqian Date: Tue, 6 Feb 2024 15:54:58 +0800 Subject: [PATCH] fix repay near precision issueissue --- store/actions/repay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/actions/repay.ts b/store/actions/repay.ts index d5e55e6a..6393d996 100644 --- a/store/actions/repay.ts +++ b/store/actions/repay.ts @@ -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)), }); }