-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Context:
This is for Mainnet Execution. To setup new pool pair(s) based on the DFIP that passed. Please assist in verification on the various respective ends.
Target implementation date: -
Testnet Execution issue: -
Setup Process:
Command author(s): @friedriche-br
Review & Verification: @friedriche-br , @prasannavl
Mainnet Execution:
Adding of liquidity:
Testing:
Coordinate Support on LW and Scan if needed.
1. Creation of Tokens
createtoken '{"symbol": "MARA", "name": "Marathon Digital Holdings, Inc", "isDAT": "true", "collateralAddress":"8bL7jZe2Nk5EhqFA6yuf8HPre3M6eewkqj"}'
createtoken '{"symbol": "HOOD", "name": "Robinhood Markets Inc", "isDAT": "true", "collateralAddress":"8bL7jZe2Nk5EhqFA6yuf8HPre3M6eewkqj"}'
createtoken '{"symbol": "MU", "name": "Micron Technology Inc", "isDAT": "true", "collateralAddress":"8bL7jZe2Nk5EhqFA6yuf8HPre3M6eewkqj"}'
createtoken '{"symbol": "SMCI", "name": "Super Micro Computer Inc", "isDAT": "true", "collateralAddress":"8bL7jZe2Nk5EhqFA6yuf8HPre3M6eewkqj"}'
createtoken '{"symbol": "ASML", "name": "ASML Holding NV", "isDAT": "true", "collateralAddress":"8bL7jZe2Nk5EhqFA6yuf8HPre3M6eewkqj"}'
2. Setting as Loan Tokens
Get the ID of each token and replace the place holders below with it, for example, run gettoken MARA to get MARA's token ID, if it has an ID of 270 then replace <MARA_ID> with 270.
setgov {"ATTRIBUTES":{"v0/token/<MARA_ID>/fixed_interval_price_id": "MARA/USD","v0/token/<MARA_ID>/loan_minting_enabled": "true","v0/token/<MARA_ID>/loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token/<HOOD_ID>/fixed_interval_price_id": "HOOD/USD","v0/token/<HOOD_ID>/loan_minting_enabled": "true","v0/token/<HOOD_ID>/loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token/<MU_ID>/fixed_interval_price_id": "MU/USD","v0/token/<MU_ID>/loan_minting_enabled": "true","v0/token/<MU_ID>/loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token/<SMCI_ID>/fixed_interval_price_id": "SMCI/USD","v0/token/<SMCI_ID>/loan_minting_enabled": "true","v0/token/<SMCI_ID>/loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token/<ASML_ID>/fixed_interval_price_id": "ASML/USD","v0/token/<ASML_ID>/loan_minting_enabled": "true","v0/token/<ASML_ID>/loan_minting_interest": "0"}}
3. Creating the pool
defi-cli createpoolpair '{"tokenA": "MARA", "tokenB": "DUSD", "commission": 0.002, "status": true, "ownerAddress": "8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb"}'
defi-cli createpoolpair '{"tokenA": "HOOD", "tokenB": "DUSD", "commission": 0.002, "status": true, "ownerAddress": "8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb"}'
defi-cli createpoolpair '{"tokenA": "MU", "tokenB": "DUSD", "commission": 0.002, "status": true, "ownerAddress": "8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb"}'
defi-cli createpoolpair '{"tokenA": "SMCI", "tokenB": "DUSD", "commission": 0.002, "status": true, "ownerAddress": "8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb"}'
defi-cli createpoolpair '{"tokenA": "ASML", "tokenB": "DUSD", "commission": 0.002, "status": true, "ownerAddress": "8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb"}'
4. Minting Token
Manual process from vault by XXX team.
5. Add Pool Liquidity (Address verification needed)
Effective DUSD price used: $X.XX (Provided by XXX team)
defi-cli addpoolliquidity '{ "dPbgxGbH4FRqpYnZKrjTMWKiXiuDFugCwu": [ "25.61@MARA","1612.90322581@DUSD"]}' 8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb
defi-cli addpoolliquidity '{ "dPbgxGbH4FRqpYnZKrjTMWKiXiuDFugCwu": [ "23.91@HOOD","1612.90322581@DUSD"]}' 8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb
defi-cli addpoolliquidity '{ "dPbgxGbH4FRqpYnZKrjTMWKiXiuDFugCwu": [ "3.99@MU","1612.90322581@DUSD"]}' 8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb
defi-cli addpoolliquidity '{ "dPbgxGbH4FRqpYnZKrjTMWKiXiuDFugCwu": [ "0.64@SMCI","1612.90322581@DUSD"]}' 8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb
defi-cli addpoolliquidity '{ "dPbgxGbH4FRqpYnZKrjTMWKiXiuDFugCwu": [ "0.52@ASML","1612.90322581@DUSD"]}' 8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb
6. Validation
defi-cli listpoolpairs
defi-cli getpoolpair "MARA-DUSD"
defi-cli getpoolpair "HOOD-DUSD"
defi-cli getpoolpair "MU-DUSD"
defi-cli getpoolpair "SMCI-DUSD"
defi-cli getpoolpair "ASML-DUSD"
Metadata
Metadata
Assignees
Labels
No labels