From 6bc9327d8a5019d4c34a0ae207721ad69365c2c8 Mon Sep 17 00:00:00 2001 From: naturexie <786281870@qq.com> Date: Sat, 18 Jan 2025 00:21:54 +0800 Subject: [PATCH] feat: update burrow storage fee issue --- README.md | 2 +- store/constants.ts | 2 +- store/tokens.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb290312..6e221b07 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ NEXT_PUBLIC_CONTRACT_NAME=contract.1638481328.burrow.testnet # NEXT_PUBLIC_DEFAULT_NETWORK=mainnet # NEXT_PUBLIC_CONTRACT_NAME=contract.main.burrow.near -NEXT_PUBLIC_NEAR_STORAGE_DEPOSIT=0.25 +NEXT_PUBLIC_NEAR_STORAGE_DEPOSIT=0.15 # get the id from the walletconnect.com website (create a new project in dashboard) NEXT_PUBLIC_WALLET_CONNECT_ID= diff --git a/store/constants.ts b/store/constants.ts index 2a730c9e..4ff6fb04 100644 --- a/store/constants.ts +++ b/store/constants.ts @@ -46,7 +46,7 @@ export const DUST_FORMAT = { }; export const NO_STORAGE_DEPOSIT_CONTRACTS = ["aurora"]; -export const NEAR_STORAGE_DEPOSIT = Number(process.env.NEXT_PUBLIC_NEAR_STORAGE_DEPOSIT) || 0.25; +export const NEAR_STORAGE_DEPOSIT = 0.15; export const NEAR_STORAGE_DEPOSIT_MIN = 0.05; export const NEAR_STORAGE_EXTRA_DEPOSIT = 0.1; export const NEAR_STORAGE_TOKEN = 0.1; diff --git a/store/tokens.ts b/store/tokens.ts index e2be214d..9f8f0c4a 100644 --- a/store/tokens.ts +++ b/store/tokens.ts @@ -107,7 +107,6 @@ export const prepareAndExecuteTokenTransactions = async ( const transactions: Transaction[] = []; const functionCalls: FunctionCallOptions[] = []; - // check if account is registered in the token contract if ( !(await isRegistered(account.accountId, tokenContract.contractId)) &&