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

feat: add dai to internal testnet hard money markets #2027

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

karzak
Copy link
Member

@karzak karzak commented Sep 26, 2024

Updates internal testnet genesis to include dai money market and associated pricefeed changes. Updates seed script to include dai as as evm conversion pair. This enables testing of 18 decimal money markets on internal testnet.

Checklist

  • Changelog has been updated as necessary.

"market_id": "dai:usd:30",
"base_asset": "dai",
"quote_asset": "usd",
"oracles": [
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have oracle for internal testnet? Or is it just a required value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I'm not sure where the private key for kava1hdn83q3srldcpan4ex2v4npuae8hmnfrps3e6h is defined 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just hard code the prices in the pricefeed and set them to never expire:

Copy link
Member

@nddeluca nddeluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test locally, but I don't see any obvious issues

"loan_to_value": "0.500000000000000000"
},
"spot_market_id": "dai:usd:30",
"conversion_factor": "1000000000000000000",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10^18 👍

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💰

@karzak karzak merged commit f1ede32 into master Sep 26, 2024
14 checks passed
@karzak karzak deleted the kd-add-dai-market-internal-testnet branch September 26, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants