diff --git a/env/sepolia-testnet.env b/env/sepolia-testnet.env index aaf8e86..f7b728f 100644 --- a/env/sepolia-testnet.env +++ b/env/sepolia-testnet.env @@ -1,9 +1,9 @@ ############### # APPLICATION # ############### -# REACT_APP_BLOCKCHAIN_URI=https://sepolia.infura.io/v3/ # Replace this with a URL containing the infura API key +REACT_APP_BLOCKCHAIN_URI=https://sepolia.infura.io/v3/ REACT_APP_CHAIN_ID=11155111 -REACT_APP_DJED_ADDRESS=0x1E48ecD3E409BA040D18453F1080bfC706c4A88f +REACT_APP_DJED_ADDRESS=0x624FcD0a1F9B5820c950FefD48087531d38387f4 REACT_APP_FEE_UI=0 REACT_APP_UI=0x0232556C83791b8291E9b23BfEa7d67405Bd9839 REACT_APP_EXPLORER=https://sepolia.etherscan.io/ @@ -15,5 +15,5 @@ REACT_APP_SC_SYMBOL=SOD REACT_APP_RC_NAME=Sepolia Djed Osiris Reservecoin REACT_APP_RC_SYMBOL=SOR REACT_APP_LIMIT_PER_TXN=10000 -REACT_APP_EVM_RESERVECOIN_ADDRESS=0xbcC047256797B3B3039cd29e3D29EBBb8A0509B8 -REACT_APP_EVM_STABLECOIN_ADDRESS=0xC0F1F8F7837a547398e5f5a73525B9BC5628839a +REACT_APP_EVM_RESERVECOIN_ADDRESS=0xc61ac381F4F585fd194D3C5cE20B76826b960e5E +REACT_APP_EVM_STABLECOIN_ADDRESS=0x6b930182787F346F18666D167e8d32166dC5eFBD diff --git a/src/utils/ethereum.js b/src/utils/ethereum.js index e8b0d5e..779f60f 100644 --- a/src/utils/ethereum.js +++ b/src/utils/ethereum.js @@ -585,7 +585,7 @@ export const calculateFutureScPrice = async ({ const futureScSupply = BigNumber.from(scSupply).add(BigNumber.from(amountSC)); const futureRatio = BigNumber.from(ratio).add(BigNumber.from(amountBC)); - if (futureScSupply === 0) { + if (futureScSupply.isZero()) { return scTargetPrice; } else { const futurePrice = futureRatio.mul(scDecimalScalingFactor).div(futureScSupply);