-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from curvefi/xDai
xDai
- Loading branch information
Showing
19 changed files
with
246 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { lowerCaseValues } from "../utils"; | ||
|
||
export const COINS_XDAI: { [index: string]: string } = lowerCaseValues({ | ||
'crv': '0x712b3d230f3c1c19db860d80619288b1f0bdd0bd', | ||
|
||
// --- USD --- | ||
|
||
'wxdai': '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', | ||
'usdc': '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', | ||
'usdt': '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', | ||
'rai': '0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa', | ||
'x3crv': '0x1337BedC9D22ecbe766dF105c9623922A27963EC', | ||
}) | ||
|
||
export const cTokensXDai = []; //.map((a) => a.toLowerCase()); | ||
export const yTokensXDai = []; //.map((a) => a.toLowerCase()); | ||
export const ycTokensXDai = []; //.map((a) => a.toLowerCase()); | ||
export const aTokensXDai = []; //.map((a) => a.toLowerCase()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import tripoolSwapABI from '../abis/3pool/swap.json'; | ||
import raiSwapABI from '../abis/rai/swap.json'; | ||
import raiZapABI from '../abis/rai/deposit.json'; | ||
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json'; | ||
import streamerABI from '../abis/streamer.json'; | ||
import { lowerCasePoolDataAddresses } from "../utils"; | ||
import { IPoolData } from "../../interfaces"; | ||
|
||
export const POOLS_DATA_XDAI: { [index: string]: IPoolData } = lowerCasePoolDataAddresses({ | ||
'3pool': { | ||
name: "3pool", | ||
full_name: "3pool", | ||
symbol: "3pool", | ||
reference_asset: 'USD', | ||
swap_address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', | ||
token_address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC', | ||
gauge_address: '0x78CF256256C8089d68Cde634Cf7cDEFb39286470', // Rewards-Only | ||
sCurveRewards_address: '0x6C09F6727113543Fd061a721da512B7eFCDD0267', | ||
is_plain: true, | ||
underlying_coins: ['WXDAI', 'USDC', 'USDT'], | ||
wrapped_coins: ['WXDAI', 'USDC', 'USDT'], | ||
underlying_coin_addresses: [ | ||
'0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', | ||
'0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', | ||
'0x4ECaBa5870353805a9F068101A40E0f32ed605C6', | ||
], | ||
wrapped_coin_addresses: [ | ||
'0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', | ||
'0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', | ||
'0x4ECaBa5870353805a9F068101A40E0f32ed605C6', | ||
], | ||
underlying_decimals: [18, 6, 6], | ||
wrapped_decimals: [18, 6, 6], | ||
swap_abi: tripoolSwapABI, | ||
gauge_abi: gaugeRewardsOnlyABI, | ||
sCurveRewards_abi: streamerABI, | ||
}, | ||
rai: { | ||
name: "rai", | ||
full_name: "rai", | ||
symbol: "rai", | ||
reference_asset: 'USD', | ||
swap_address: '0x85bA9Dfb4a3E4541420Fc75Be02E2B42042D7e46', | ||
token_address: '0x36390a1Ae126f16C5D222CB1F2AB341dD09f2FEC', | ||
gauge_address: '0x0000000000000000000000000000000000000000', // NO GAUGE FOR THIS POOL BUT NECESSARY TO AVOID REVERTS | ||
deposit_address: '0xdf6eb52c4A9d7d5964b918c50D47a643Fd7D3D4c', | ||
is_meta: true, | ||
base_pool: '3pool', | ||
underlying_coins: ['RAI', 'WXDAI', 'USDC', 'USDT'], | ||
wrapped_coins: ['RAI', 'x3CRV'], | ||
underlying_coin_addresses: [ | ||
'0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa', | ||
'0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', | ||
'0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', | ||
'0x4ECaBa5870353805a9F068101A40E0f32ed605C6', | ||
], | ||
wrapped_coin_addresses: [ | ||
'0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa', | ||
'0x1337BedC9D22ecbe766dF105c9623922A27963EC', | ||
], | ||
underlying_decimals: [18, 18, 6, 6], | ||
wrapped_decimals: [18, 18], | ||
swap_abi: raiSwapABI, | ||
gauge_abi: gaugeRewardsOnlyABI, | ||
deposit_abi: raiZapABI, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.