Skip to content

Commit

Permalink
feat: add dai to internal testnet hard money markets (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
karzak authored Sep 26, 2024
1 parent ee4fc56 commit f1ede32
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/seed-internal-testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXL_BUSD_CON
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXL_XRPB_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 1000000000000000000000
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXL_BTCB_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 1000000000000000000000
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$WBTC_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 10000000000000
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$DAI_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 10000000000000000000000000
# seed webapp E2E whale account
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXL_WBTC_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 100000000000000
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$MULTICHAIN_wBTC_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 10000000000000
Expand Down Expand Up @@ -173,7 +174,7 @@ PARAM_CHANGE_PROP_TEMPLATE=$(
{
"subspace": "evmutil",
"key": "EnabledConversionPairs",
"value": "[{\"kava_erc20_address\":\"MULTICHAIN_USDC_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/usdc\"},{\"kava_erc20_address\":\"MULTICHAIN_USDT_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/usdt\"},{\"kava_erc20_address\":\"MULTICHAIN_wBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/wbtc\"},{\"kava_erc20_address\":\"AXL_USDC_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/usdc\"},{\"kava_erc20_address\":\"AXL_WBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/wbtc\"},{\"kava_erc20_address\":\"wETH_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/eth\"},{\"kava_erc20_address\":\"TETHER_USDT_CONTRACT_ADDRESS\",\"denom\":\"erc20/tether/usdt\"},{\"kava_erc20_address\":\"AXL_BNB_CONTRACT_ADDRESS\",\"denom\":\"bnb\"},{\"kava_erc20_address\":\"AXL_BUSD_CONTRACT_ADDRESS\",\"denom\":\"busd\"},{\"kava_erc20_address\":\"AXL_BTCB_CONTRACT_ADDRESS\",\"denom\":\"btcb\"},{\"kava_erc20_address\":\"AXL_XRPB_CONTRACT_ADDRESS\",\"denom\":\"xrpb\"},{\"kava_erc20_address\":\"WBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/bitgo/wbtc\"}]"
"value": "[{\"kava_erc20_address\":\"MULTICHAIN_USDC_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/usdc\"},{\"kava_erc20_address\":\"MULTICHAIN_USDT_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/usdt\"},{\"kava_erc20_address\":\"MULTICHAIN_wBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/multichain/wbtc\"},{\"kava_erc20_address\":\"AXL_USDC_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/usdc\"},{\"kava_erc20_address\":\"AXL_WBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/wbtc\"},{\"kava_erc20_address\":\"DAI_CONTRACT_ADDRESS\",\"denom\":\"erc20/eth/dai\"},{\"kava_erc20_address\":\"wETH_CONTRACT_ADDRESS\",\"denom\":\"erc20/axelar/eth\"},{\"kava_erc20_address\":\"TETHER_USDT_CONTRACT_ADDRESS\",\"denom\":\"erc20/tether/usdt\"},{\"kava_erc20_address\":\"AXL_BNB_CONTRACT_ADDRESS\",\"denom\":\"bnb\"},{\"kava_erc20_address\":\"AXL_BUSD_CONTRACT_ADDRESS\",\"denom\":\"busd\"},{\"kava_erc20_address\":\"AXL_BTCB_CONTRACT_ADDRESS\",\"denom\":\"btcb\"},{\"kava_erc20_address\":\"AXL_XRPB_CONTRACT_ADDRESS\",\"denom\":\"xrpb\"},{\"kava_erc20_address\":\"WBTC_CONTRACT_ADDRESS\",\"denom\":\"erc20/bitgo/wbtc\"}]"
}
]
}
Expand All @@ -195,6 +196,7 @@ finalProposal="${finalProposal/AXL_BUSD_CONTRACT_ADDRESS/$AXL_BUSD_CONTRACT_ADDR
finalProposal="${finalProposal/AXL_BTCB_CONTRACT_ADDRESS/$AXL_BTCB_CONTRACT_ADDRESS}"
finalProposal="${finalProposal/AXL_XRPB_CONTRACT_ADDRESS/$AXL_XRPB_CONTRACT_ADDRESS}"
finalProposal="${finalProposal/WBTC_CONTRACT_ADDRESS/$WBTC_CONTRACT_ADDRESS}"
finalProposal="${finalProposal/DAI_CONTRACT_ADDRESS/$DAI_CONTRACT_ADDRESS}"

# create unique proposal filename
proposalFileName="$(date +%s)-proposal.json"
Expand Down
50 changes: 49 additions & 1 deletion ci/env/kava-internal-testnet/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -2344,6 +2344,24 @@
"reserve_factor": "0.025000000000000000",
"keeper_reward_percentage": "0.020000000000000000"
},
{
"denom": "erc20/eth/dai",
"borrow_limit": {
"has_max_limit": false,
"maximum_limit": "0.000000000000000000",
"loan_to_value": "0.500000000000000000"
},
"spot_market_id": "dai:usd:30",
"conversion_factor": "1000000000000000000",
"interest_rate_model": {
"base_rate_apy": "0.000000000000000000",
"base_multiplier": "0.050000000000000000",
"kink": "0.800000000000000000",
"jump_multiplier": "5.000000000000000000"
},
"reserve_factor": "0.025000000000000000",
"keeper_reward_percentage": "0.020000000000000000"
},
{
"denom": "erc20/axelar/wbtc",
"borrow_limit": {
Expand Down Expand Up @@ -3307,10 +3325,28 @@
],
"active": true
},
{
"market_id": "dai:usd",
"base_asset": "dai",
"quote_asset": "usd",
"oracles": [
"kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h"
],
"active": true
},
{
"market_id": "dai:usd:30",
"base_asset": "dai",
"quote_asset": "usd",
"oracles": [
"kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h"
],
"active": true
},
{
"market_id": "eth:usd",
"base_asset": "eth",
"quote_asset": "eth",
"quote_asset": "usd",
"oracles": [
"kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h"
],
Expand Down Expand Up @@ -3577,6 +3613,18 @@
"oracle_address": "kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h",
"price": "28500.962650000000001782"
},
{
"expiry": "2050-01-01T00:00:00Z",
"market_id": "dai:usd",
"oracle_address": "kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h",
"price": "1.000000000000000000"
},
{
"expiry": "2050-01-01T00:00:00Z",
"market_id": "dai:usd:30",
"oracle_address": "kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h",
"price": "1.000000000000000000"
},
{
"expiry": "2050-01-01T00:00:00Z",
"market_id": "eth:usd",
Expand Down

0 comments on commit f1ede32

Please sign in to comment.