Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed new bond issuer #133

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spot-contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This repository is a collection of smart contracts that implement the SPOT perpe
The official mainnet addresses are:

- SPOT ERC-20 Token: [0xC1f33e0cf7e40a67375007104B929E49a581bafE](https://etherscan.io/address/0xC1f33e0cf7e40a67375007104B929E49a581bafE)
- Bond issuer: [0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2](https://etherscan.io/address/0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2)
- Bond issuer: [0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777](https://etherscan.io/address/0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777)
- Router: [0x38f600e08540178719BF656e6B43FC15A529c393](https://etherscan.io/address/0x38f600e08540178719BF656e6B43FC15A529c393)

## Install
Expand Down
8 changes: 6 additions & 2 deletions spot-contracts/deployments/mainnet.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"ampl": "0xD46bA6D942050d489DBd938a2C909A5d5039A161",
"bondFactory": "0x2b135C839d61808E1eC6F84151CD9429B0920374",
"bondIssuer": "0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2",
"bondIssuer": "0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777",
"spot": "0xC1f33e0cf7e40a67375007104B929E49a581bafE",
"proxyAdmin": "0x2978B4103985A6668CE345555b0febdE64Fb092F",
"router": "0x38f600e08540178719BF656e6B43FC15A529c393",
"previousIssuers": ["0x9443b779d4AedF97d2B93D7CDa5fA0BB6312DfF2", "0xD64FA63dc5E8fcB743457E47E4d522E11Ff1AD66"]
"previousIssuers": [
"0x9443b779d4AedF97d2B93D7CDa5fA0BB6312DfF2",
"0xD64FA63dc5E8fcB743457E47E4d522E11Ff1AD66",
"0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2"
]
}
10 changes: 6 additions & 4 deletions spot-contracts/tasks/mainnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## DEPLOYMENT
# monthly bonds, weekly issue, offset wednesday 2pm PST (DST)
yarn hardhat --network mainnet deploy:BondIssuer \
--bond-factory-address "0x2b135C839d61808E1eC6F84151CD9429B0920374" \
--bond-factory-address "0x71868D38Ea3b3eB5e4db9a45ee355548B46c82E0" \
--bond-duration "2419200" \
--issue-frequency "604800" \
--issue-window-offset "597600" \
Expand All @@ -27,7 +27,7 @@ yarn hardhat --network mainnet deploy:Router

########################################################################
## Transfer ownership
yarn hardhat --network mainnet transferOwnership "0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2" \
yarn hardhat --network mainnet transferOwnership "0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777" \
--new-owner-address "0x57981B1EaFe4b18EC97f8B10859B40207b364662"

yarn hardhat --network mainnet transferOwnership "0xFF732cA9EFc95E853FBD71a5c61647cd0C0898a3" \
Expand All @@ -42,7 +42,6 @@ yarn hardhat --network mainnet transferOwnership "0xC1f33e0cf7e40a67375007104B92
yarn hardhat --network mainnet transferOwnership "0x2978B4103985A6668CE345555b0febdE64Fb092F" \
--new-owner-address "0x57981B1EaFe4b18EC97f8B10859B40207b364662"


########################################################################
## OPS
yarn hardhat --network mainnet ops:info 0xC1f33e0cf7e40a67375007104B929E49a581bafE
Expand All @@ -69,9 +68,12 @@ yarn hardhat --network mainnet ops:redeemTranches \
yarn hardhat --network mainnet ops:redeemTranches \
--bond-issuer-address 0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2

yarn hardhat --network mainnet ops:redeemTranches \
--bond-issuer-address 0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777

yarn hardhat --network mainnet ops:preview_tx:redeemTranches \
--wallet-address [INSERT_WALLET_ADDRESS] \
--bond-issuer-address 0x2E2E49eDCd5ce08677Bab6d791C863f1361B52F2
--bond-issuer-address 0x85d1BA777Eb3FCBb10C82cdf3aAa8231e21B6777

yarn hardhat --network mainnet ops:preview_tx:trancheAndRollover \
--wallet-address [INSERT_WALLET_ADDRESS] \
Expand Down