From 495080aa235b1840a7cb027929c27565a846c536 Mon Sep 17 00:00:00 2001 From: xieqian Date: Tue, 6 Feb 2024 14:06:10 +0800 Subject: [PATCH] near max repay fix --- 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 fc89d219..feb3cb1d 100644 --- a/store/actions/repay.ts +++ b/store/actions/repay.ts @@ -48,7 +48,7 @@ export async function repay({ functionCalls.push({ methodName: ChangeMethodsNearToken[ChangeMethodsNearToken.near_deposit], gas: new BN("100000000000000"), - attachedDeposit: new BN(toWrapAmount.toFixed(0)), + attachedDeposit: new BN(toWrapAmount.toFixed(0, 2)), }); } let msg;