- For Main net: If you got some error, remember to first
rm -rf artifactsand thennpx hardhat clean - For TestNet:
npx hardhat run --network arbitrumGoerli deploy/deployPermanentPortfolio.js - For fronend development:
export TESTNET_API_URL=http://127.0.0.1:8545/; npx hardhat run --network localhost deploy/deployPermanentPortfolio.js - Chain:
export BLOCK_NUMBER=123270171; yarn chain - Update the contract addresses resides in
rebalanceserver andfrontend - (optional): Might need to manually verify if your deploy script fails:
npx hardhat verify --network arbitrum 0x47cF63A2C2a60efD53193504c8a9846D38254549 "0x14FbC760eFaF36781cB0eb3Cb255aD976117B9Bd" "Equilibria-RETH" "ALP-EQB-RETH"
- dpx:
BLOCK_NUMBER=97022421 yarn test test/dpxArbitrumVaultTest.js - radiant:
- USDT:
BLOCK_NUMBER=86630670 yarn test test/radiantArbitrumVaultTest.js - wETH:
BLOCK_NUMBER=101043121 yarn test test/radiantArbitrumVaultTest.js
- USDT:
- arbitrum rich impersonate address:
0x2B9AcFd85440B7828DB8E54694Ee07b2B056B30C
add the new vault into:
deposit()for loopredeem()for loop- add new vault address in the portfolio's contructor, add its
requireaccordingly and add this new vault into thevault[] - need to add lots of variable in
utils.js - update need to manually add some tokens into
/debankroute in rebalance backend (for instance, 0xeeeeee for each blockchain can be different token) - need to find the API of that protocol you integrated first, and then calculate its
apr_compositionin/apr_compositionendpoint in rebalance backend - check the result of
apr compositionon frontend side - frontend side:
/addresses: github
- clean up cache:
rm -rf hardhat/cacheyarn cache cleanrm -rf artifacts