Skip to content

Commit

Permalink
deployed-djed-contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya-ruby committed Jun 4, 2024
1 parent 0f2dca3 commit 61a64c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions env/sepolia-testnet.env
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/utils/ethereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61a64c4

Please sign in to comment.