DeFiCh / DeFiCh/governance

[Sample] [Mainnet] Adding MARA, HOOD, MU, SMCI, ASML on DeFiChain DEX and adding pool liquidity.

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

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 with 270.

```
setgov {"ATTRIBUTES":{"v0/token//fixed_interval_price_id": "MARA/USD","v0/token//loan_minting_enabled": "true","v0/token//loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token//fixed_interval_price_id": "HOOD/USD","v0/token//loan_minting_enabled": "true","v0/token//loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token//fixed_interval_price_id": "MU/USD","v0/token//loan_minting_enabled": "true","v0/token//loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token//fixed_interval_price_id": "SMCI/USD","v0/token//loan_minting_enabled": "true","v0/token//loan_minting_interest": "0"}}
setgov {"ATTRIBUTES":{"v0/token//fixed_interval_price_id": "ASML/USD","v0/token//loan_minting_enabled": "true","v0/token//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"
```

Contributor guide

Open the contributing guide

Research direction

Review the listed createtoken, setgov, createpoolpair, addpoolliquidity, and validation commands first. Confirm the missing token IDs, DUSD price, address verification, target date, and execution roles before treating the work as complete; validation is the listed listpoolpairs and getpoolpair checks for all five pools.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain
Domain
blockchain, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.