diff --git a/.gitignore b/.gitignore index 3e22129..442f04b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/dist \ No newline at end of file +/dist +node_modules/ \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..e1ab2df --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +registry=https://registry.npmjs.org/ +always-auth=true +email=dev@xave.finance \ No newline at end of file diff --git a/halodao-halodao-contract-addresses-1.0.25-beta-15.tgz b/halodao-halodao-contract-addresses-1.0.25-beta-15.tgz new file mode 100644 index 0000000..870fc75 Binary files /dev/null and b/halodao-halodao-contract-addresses-1.0.25-beta-15.tgz differ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..ad84245 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,29 @@ +{ + "name": "@halodao/halodao-contract-addresses", + "version": "1.0.25-beta-12", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@halodao/halodao-contract-addresses", + "version": "1.0.25-beta-12", + "license": "MIT", + "devDependencies": { + "typescript": "^4.9.5" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + } +} diff --git a/package.json b/package.json index dfcfe8c..e674367 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@halodao/halodao-contract-addresses", - "version": "1.0.24", + "version": "1.0.25-beta-y", "description": "List of HaloDAO contract addresses across all chains", "repository": "https://github.com/HaloDAO/halodao-contract-addresses", "author": "HaloDAO Dev", @@ -11,6 +11,10 @@ "/dist" ], "scripts": { - "npm-publish": "tsc && npm publish --access public" + "npm-publish": "tsc && npm publish --access public", + "build": "tsc" + }, + "devDependencies": { + "typescript": "^4.9.5" } } diff --git a/src/arb.ts b/src/arb.ts index de8309d..a8a6545 100644 --- a/src/arb.ts +++ b/src/arb.ts @@ -4,6 +4,7 @@ const tokens = { USDC: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8', fxPHP: '0x3d147cD9aC957B2a5F968dE9d1c6B9d0872286a0', EURS: '0xD22a58f79e9481D1a88e00c343885A588b34b68B', + BAL: '0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8', // Balancer governance token fakeUSDC: '0x9cFf4A10b6Fb163a4DF369AaFed9d95838222ca6', // fake mintable token fakeFxPHP: '0x03612728266b82EF5dB751fbf15ea7F1370502eE', // fake mintable token fakeXSGD: '0x6d934DcbA7F8e89713b4334147c03e76f30CE094', // fake mintable token diff --git a/src/goerli.ts b/src/goerli.ts index bf2261f..227fdd2 100644 --- a/src/goerli.ts +++ b/src/goerli.ts @@ -1,35 +1,74 @@ import { AddressCollection, ZERO_ADDRESS } from './types' const tokens = { - USDC: '0xB32EcEb4f6B5e840Fe0e4ff127D7761D13a4C092', - XSGD: '0xb4a183d38F754D83AA97810D80FC5BaCCd5c8441', - EURS: '0x2b1c6c85a1dB4b5CF9C4d4662d0556E5daBcf626', - USDT: '0x9FDc4881Ce3eE888A7D3162A8AccFB3875437B34', - DAI: '0x7421F1bAb6d1D82c2f854B464Ecd81e0288F3550', - 'bb-a-usd': '0x7CCB99E3DBeF941a062E0da1b0d7635bdCFafB01', // balancer ComposableStablePool - 'bb-a-USDC': '0x0595D1Df64279ddB51F1bdC405Fe2D0b4Cc86681', // balancer USDC:aUSDC AaveLinearPool - 'bb-a-DAI': '0x5cEA6A84eD13590ED14903925Fa1A73c36297d99', // balancer DAI:aDAI AaveLinearPool - 'bb-a-USDT': '0xeFD681A82970AC5d980b9B2D40499735e7BF3F1F', // balancer USDT:aUSDT AaveLinearPool - balUSDC: '0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb', // balancer USDC token - balDAI: '0x8c9e6c40d3402480ACE624730524fACC5482798c', // balancer DAI token - balUSDT: '0x1f1f156E0317167c11Aa412E3d1435ea29Dc3cCE' // balancer USDT token + // Xave tokens + XSGD: '0xb4a183d38F754D83AA97810D80FC5BaCCd5c8441', // Xave mock XSGD + EURS: '0x2b1c6c85a1dB4b5CF9C4d4662d0556E5daBcf626', // Xave mock EURS + + // Balancer tokens + BAL: '0xfA8449189744799aD2AcE7e0EBAC8BB7575eff47', // Balancer governance token + USDC: '0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb', // Balancer USDC token + USDT: '0x1f1f156E0317167c11Aa412E3d1435ea29Dc3cCE', // Balancer USDT token + DAI: '0x8c9e6c40d3402480ACE624730524fACC5482798c', // Balancer DAI token + 'bb-a-usd': '0x7CCB99E3DBeF941a062E0da1b0d7635bdCFafB01', // Balancer ComposableStablePool + 'bb-a-USDC': '0x0595D1Df64279ddB51F1bdC405Fe2D0b4Cc86681', // Balancer USDC:aUSDC AaveLinearPool + 'bb-a-DAI': '0x5cEA6A84eD13590ED14903925Fa1A73c36297d99', // Balancer DAI:aDAI AaveLinearPool + 'bb-a-USDT': '0xeFD681A82970AC5d980b9B2D40499735e7BF3F1F' // Balancer USDT:aUSDT AaveLinearPool } const fxPools = { - LP_XSGD_USDC: '0x5886F7BFCC5D61CD4Ad0DC34e72DEFa2c85dE104', - LP_EURS_USDC: '0x1fbA91Ce46d2453e2d461b1a0FcF76588a07fE41', - 'LP_XSGD_bb-a-usd': '0xeDdd595eFDc678781AF03F54BEc3373964C5fA10' + LP_XSGD_USDC: '0x8233CDcD08ccA2718065740e5EF767294361a05a', + LP_EURS_USDC: '0x3F3557C7dCa644F6F5d6074FF560a8856155f632', + 'LP_XSGD_bb-a-usd': '0xF93AC32926574F67F112182ad95F8359c42715Da', + 'LP_EURS_bb-a-usd': '0x83b630DBF3e90cF0b69dd4029c3d49AF7E48c355' } -const fxPoolIds = { +const poolIds = { XSGD_USDC: - '0x5886f7bfcc5d61cd4ad0dc34e72defa2c85de1040002000000000000000002e9', + '0x8233cdcd08cca2718065740e5ef767294361a05a00020000000000000000067b', EURS_USDC: - '0x1fba91ce46d2453e2d461b1a0fcf76588a07fe410002000000000000000003af', + '0x3f3557c7dca644f6f5d6074ff560a8856155f63200020000000000000000066e', 'XSGD_bb-a-usd': - '0xeddd595efdc678781af03f54bec3373964c5fa10000200000000000000000560' + '0xf93ac32926574f67f112182ad95f8359c42715da00020000000000000000067c', + 'EURS_bb-a-usd': + '0x83b630dbf3e90cf0b69dd4029c3d49af7e48c35500020000000000000000067d', + 'bb-a-usd': + '0x7ccb99e3dbef941a062e0da1b0d7635bdcfafb0100000000000000000000054a', + 'bb-a-USDC': + '0x0595d1df64279ddb51f1bdc405fe2d0b4cc8668100000000000000000000005c', + 'bb-a-DAI': + '0x5cea6a84ed13590ed14903925fa1a73c36297d9900000000000000000000005d', + 'bb-a-USDT': + '0xefd681a82970ac5d980b9b2d40499735e7bf3f1f00000000000000000000005e' } +const bbausdPoolTokens = [ + tokens.USDC, + tokens.DAI, + tokens.USDT, + tokens['bb-a-USDC'], + tokens['bb-a-DAI'], + tokens['bb-a-USDT'] +] + +const bbausdSubpools = [ + { + address: tokens['bb-a-USDC'], + poolId: poolIds['bb-a-USDC'], + assets: [tokens.USDC] + }, + { + address: tokens['bb-a-DAI'], + poolId: poolIds['bb-a-DAI'], + assets: [tokens.DAI] + }, + { + address: tokens['bb-a-USDT'], + poolId: poolIds['bb-a-USDT'], + assets: [tokens.USDT] + } +] + const addresses: AddressCollection = { protocol: { XAV: '0x4f2157aE2661e4312B8F2E458705fA5a9aeb3D46', @@ -46,29 +85,31 @@ const addresses: AddressCollection = { pools: { all: fxPools, genesis: [], + enabled: [ { assets: [tokens.XSGD, tokens.USDC], address: fxPools.LP_XSGD_USDC, - poolId: fxPoolIds.XSGD_USDC + poolId: poolIds.XSGD_USDC }, { assets: [tokens.EURS, tokens.USDC], address: fxPools.LP_EURS_USDC, - poolId: fxPoolIds.EURS_USDC + poolId: poolIds.EURS_USDC }, { assets: [tokens.XSGD, tokens['bb-a-usd']], address: fxPools['LP_XSGD_bb-a-usd'], - poolId: fxPoolIds['XSGD_bb-a-usd'], - poolTokens: [ - tokens.balUSDC, - tokens.balDAI, - tokens.balUSDT, - tokens['bb-a-USDC'], - tokens['bb-a-DAI'], - tokens['bb-a-USDT'] - ] + poolId: poolIds['XSGD_bb-a-usd'], + poolTokens: bbausdPoolTokens, + subPools: bbausdSubpools + }, + { + assets: [tokens.EURS, tokens['bb-a-usd']], + address: fxPools['LP_EURS_bb-a-usd'], + poolId: poolIds['EURS_bb-a-usd'], + poolTokens: bbausdPoolTokens, + subPools: bbausdSubpools } ], disabled: [] @@ -79,28 +120,27 @@ const addresses: AddressCollection = { swapLibrary: '0x9875C5C44C10e24AEa48C422f819c5c8f933701D', oracles: { USDC: '0xAb5c49580294Aff77670F839ea425f5b78ab3Ae7', // Chainklink official USDC/USD oracle - XSGD: '0x3E58d34C8cf108897b1296eF462AD18522f7e122', // mock XSGD/USD oracle + XSGD: '0xebFF09c20a4de756cA86bF13E8878AeA795Bd6A7', // Xave mock XSGD/USD oracle EURS: '0x44390589104C9164407A0E0562a9DBe6C24A0E05', // Chainklink official EURS/USD oracle USDT: '0xAb5c49580294Aff77670F839ea425f5b78ab3Ae7', // no USDT on Chainlink goerli, reusing USDC instead DAI: '0x0d79df66BE487753B02D015Fb622DED7f0E9798d', // Chainklink official DAI/USD oracle - 'bb-a-usd': '0x9Db0c4Bf8e8CDf42D8C611019a0ee291a60C70E2' // Xave's ComposableBoostedPoolUsdRate oracle + 'bb-a-usd': '0xA76dC5048F80D2f2974754D292B09a441ea60EcA' // Xave's ComposableBoostedPoolOracle }, assimilators: { - XSGD_USD: '0x4013e4d132692D1c99233345d06Aa13AB9133D95', - EURS_USD: '0x096337250551Ae6E4Bf423Ab5204415777553F80', - USDC_USD: '0x82670155e38CA77Bcefbb098940D3222A3283fdb', - 'bb-a-usd_USD': '0x605C0707cf604A48819F055B09C4e11DbC0C99ED', - 'XSGD_bb-a-usd_USD': '0x27526bD0E4Fb7D342ac81F7362f40f0e9Ebd011a' + USDC_USD: '0x75deB02b7B5631395c3DFD6F8027a9C8Ce95103e', + XSGD_USD: '0xae76A9D5C56A8547a3dF9C074ed6F5Da634831fb', + EURS_USD: '0xc7B5Bc5dcAA1534b0aA38cFC19e8c15bb023a164', + 'bb-a-usd_USD': '0x35247C932ECF5898d2eFBb462146067B889bAaF8', + 'XSGD_bb-a-usd_USD': '0xD98A5Bdb5fA8E2feC69391397EB6b8D9d73428bf', + 'EURS_bb-a-usd_USD': '0x80FCFC519d0AaE7B3aAa97a9dB454eB416c67473' }, balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F' }, tokens, lendingMarket: { protocol: { - lendingPoolAddressesProvider: - '0x4D7e44c5262B61817cA7bDD8E0Bd5748C5890131', - lendingPoolAddressesProviderRegistry: - '0x651a4C20f46F29CaC490A12111CfD76bab4EfE39', + lendingPoolAddressesProvider: '0x4D7e44c5262B61817cA7bDD8E0Bd5748C5890131', + lendingPoolAddressesProviderRegistry: '0x651a4C20f46F29CaC490A12111CfD76bab4EfE39', reserveLogic: '0x04a12215189F3aeEd6D04DE8b9d0AEf839CE7764', genericLogic: '0x609208B2E016fB4B61C0191beEAfF73e2CafCF1E', validationLogic: '0xFc8A694B1d44e52b85FC13032264dc9029183dF9', @@ -109,8 +149,7 @@ const addresses: AddressCollection = { lendingPoolProxy: '0x6af3B5f7d7f4BE05C3dF360A3b573A7FB93E719B', lendingPoolConfiguratorImpl: '0x8F8791d44dcad03fec2995482CDfA9C69784f31c', lendingPoolConfigurator: '0x497fD821B014880c575aC98A23d9926f5148800E', - stableAndVariableTokensHelper: - '0x34305916713a0F9070f51dBcf5db945c4A3Ee48c', + stableAndVariableTokensHelper: '0x34305916713a0F9070f51dBcf5db945c4A3Ee48c', aTokensAndRatesHelper: '0xE3C2280f8d1af58443b487040521a9D923d6fda5', aaveOracle: '0x5d82ae79F6AF94C0159abf44034a2295aDd5C749', lendingRateOracle: '0xF403e0dD1A955f72eA8c9b6998D375f66C9E0957', @@ -118,11 +157,9 @@ const addresses: AddressCollection = { stableDebtToken: '0x10eF9F05455bf85683f032E5f79301bBE7e40758', variableDebtToken: '0x87B2418E4DFEC74Bcba9453C7C8e63c6FA7E350b', aToken: '0x5533a2e3Db531a89b25D1ed3c6a1Baa584eEc319', - defaultReserveInterestRateStrategy: - '0x890D23Be36B81a1388FeCF3ca0FBC05709eD90a2', + defaultReserveInterestRateStrategy: '0x890D23Be36B81a1388FeCF3ca0FBC05709eD90a2', wethGateway: '0x7CcA8EBFac13a6176C49369727e2Eb0a8c95812e', - lendingPoolCollateralManager: - '0x6cdb26b79716eE42944dfA1B6a9D90b56bc16B6B', + lendingPoolCollateralManager: '0x6cdb26b79716eE42944dfA1B6a9D90b56bc16B6B', walletBalanceProvider: '0xED0506376035b1E1d84a8fc345D91800F9a88361', rnbwIncentivesController: '0x1669Fd5a3cf5cB806F9e401d08849B976d878fCc', treasury: '0x0E944C65261EdD33e228A920A7846B0cf5c50a45', @@ -143,6 +180,93 @@ const addresses: AddressCollection = { }, variableDebtTokens: {}, wrappedNativeToken: '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6' + }, + ammV3: { + vault: '0xBA12222222228d8Ba445958a75a0704d566BF2C8', + pools: { + embeddedAssets: [ + tokens.DAI, + tokens.USDC, + tokens.USDT + ], + enabled: [ + { + assets: [tokens.XSGD, tokens['bb-a-usd']], + address: fxPools['LP_XSGD_bb-a-usd'], + poolId: poolIds['XSGD_bb-a-usd'] + }, + { + assets: [tokens.EURS, tokens['bb-a-usd']], + address: fxPools['LP_EURS_bb-a-usd'], + poolId: poolIds['EURS_bb-a-usd'] + }, + ], + linearPools: [ + { + // underlyingToken: tokens.USDC, + address: tokens['bb-a-USDC'], + poolId: poolIds['bb-a-USDC'], + assets: [tokens.USDC] + }, + { + // underlyingToken: tokens.DAI, + address: tokens['bb-a-DAI'], + poolId: poolIds['bb-a-DAI'], + assets: [tokens.DAI] + }, + { + // underlyingToken: tokens.USDT, + address: tokens['bb-a-USDT'], + poolId: poolIds['bb-a-USDT'], + assets: [tokens.USDT] + } + ], + 'bb-a-usd': { + address: tokens['bb-a-usd'], + poolId: poolIds['bb-a-usd'], + assets: [ + tokens['bb-a-DAI'], + tokens['bb-a-USDC'], + tokens['bb-a-USDT'], + ] + }, + fxPools: [ + { + assets: [tokens.XSGD, tokens.USDC], + address: fxPools.LP_XSGD_USDC, + poolId: poolIds.XSGD_USDC + }, + { + assets: [tokens.EURS, tokens.USDC], + address: fxPools.LP_EURS_USDC, + poolId: poolIds.EURS_USDC + }, + ], + fxMetaPools: [ + { + assets: [tokens.XSGD, tokens['bb-a-usd']], + address: fxPools['LP_XSGD_bb-a-usd'], + poolId: poolIds['XSGD_bb-a-usd'], + }, + { + assets: [tokens.EURS, tokens['bb-a-usd']], + address: fxPools['LP_EURS_bb-a-usd'], + poolId: poolIds['EURS_bb-a-usd'], + }, + ], + tokensWithConnectingPath: [ + tokens.XSGD, + tokens.EURS, + ], + // tokensWithNoDirectPath: [ + // tokens.EURS, + // ], + tokensWithDirectPath: [ + tokens.DAI, + tokens.USDC, + tokens.USDT, + ] + } } } diff --git a/src/mainnet.ts b/src/mainnet.ts index cddb25f..843961f 100644 --- a/src/mainnet.ts +++ b/src/mainnet.ts @@ -12,6 +12,7 @@ const tokens = { TCAD: '0x00000100F2A2bd000715001920eB70D229700085', TGBP: '0x00000000441378008EA67F4284A57932B1c000a5', DAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F', + BAL: '0xba100000625a3754423978a60c9317c58a424e3D', // Balancer governance token fakeUSDC: '0x7558f7F023d676841ab118D4637a68943e650196', // fake mintable token fakeXSGD: '0x3E58d34C8cf108897b1296eF462AD18522f7e122', // fake mintable token fakeFxPHP: '0x02510A18068B57B010b4CBc2E02D8CE5cCBdf8F5' // fake mintable token @@ -102,7 +103,10 @@ const addresses: AddressCollection = { { assets: [tokens.EURS, tokens.USDC], address: fxPools.LP_EURS_USDC, - poolId: fxPoolIds.EURS_USDC + poolId: fxPoolIds.EURS_USDC, + gauges: { + main: '0xB381D8923feff930b7AaeDF9563f1496ce0aCe36' // LiquidityGauge + } } ], disabled: [] @@ -118,7 +122,9 @@ const addresses: AddressCollection = { EURS: '0xb49f677943BC038e9857d61E7d053CaA2C1734C1', DAI: '0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9' }, - balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F' + balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F', + balancerGaugeController: '0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD', + balancerTokenAdmin: '0xf302f9F50958c5593770FDf4d4812309fF77414f' }, tokens, lendingMarket: { diff --git a/src/matic.ts b/src/matic.ts index 6321a4a..a052a22 100644 --- a/src/matic.ts +++ b/src/matic.ts @@ -7,10 +7,16 @@ const tokens = { XIDR: '0x2c826035c1C36986117A0e949bD6ad4baB54afE2', DAI: '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063', EURS: '0xE111178A87A3BFf0c8d18DECBa5798827539Ae99', + USDT: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', fakeUSDC: '0xd92295aDCE5B6961853394Ad05fb4670012D8c60', fakeFxPHP: '0xe1Ca353a88a8822ed95293a7E76bd20eEA2ff662', fakeXSGD: '0x7112AE5d61eb28c7b00413882B59b7F796e2A505', - fakeEURS: '0xBb54874397Beb2Dd8673eb3B8Cd7C07d54bbd02D' + fakeEURS: '0xBb54874397Beb2Dd8673eb3B8Cd7C07d54bbd02D', + BAL: '0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3', // Balancer governance token + 'bb-a-usd': '0x48e6B98ef6329f8f0A30eBB8c7C960330d648085', // balancer ComposableStablePool + 'bb-a-USDC': '0xF93579002DBE8046c43FEfE86ec78b1112247BB8', // balancer USDC:aUSDC AaveLinearPool + 'bb-a-DAI': '0x178E029173417b1F9C8bC16DCeC6f697bC323746', // balancer DAI:aDAI AaveLinearPool + 'bb-a-USDT': '0xFf4ce5AAAb5a627bf82f4A571AB1cE94Aa365eA6' // balancer USDT:aUSDT AaveLinearPool } const curves = { @@ -24,7 +30,8 @@ const curves = { const fxPools = { LP_XSGD_USDC: '0x726E324c29a1e49309672b244bdC4Ff62A270407', LP_DAI_USDC: '0x216B176513C500dBE1D677939103E350A9373a39', - LP_EURS_USDC: '0xfd24Afa5416C8De94FDbaf344840F524155A4DD0' + LP_EURS_USDC: '0xfd24Afa5416C8De94FDbaf344840F524155A4DD0', + 'LP_XSGD_bb-a-usd': '0x882c7A84231484B3E9F3fD45aC04b1EB5d35b076' } const fxPoolIds = { @@ -33,7 +40,26 @@ const fxPoolIds = { DAI_USDC: '0x216b176513c500dbe1d677939103e350a9373a390002000000000000000008da', EURS_USDC: - '0xfd24afa5416c8de94fdbaf344840f524155a4dd00002000000000000000008db' + '0xfd24afa5416c8de94fdbaf344840f524155a4dd00002000000000000000008db', + 'LP_XSGD_bb-a-usd': + '0x882C7A84231484B3E9F3FD45AC04B1EB5D35B076000200000000000000000A91' +} + +const poolIds = { + XSGD_USDC: + '0x726e324c29a1e49309672b244bdc4ff62a270407000200000000000000000702', + EURS_USDC: + '0xfd24afa5416c8de94fdbaf344840f524155a4dd00002000000000000000008db', + 'XSGD_bb-a-usd': + '0x882c7a84231484b3e9f3fd45ac04b1eb5d35b076000200000000000000000a91', + 'bb-a-usd': + '0x48e6b98ef6329f8f0a30ebb8c7c960330d64808500000000000000000000075b', + 'bb-a-USDC': + '0xf93579002dbe8046c43fefe86ec78b1112247bb8000000000000000000000759', + 'bb-a-DAI': + '0x178e029173417b1f9c8bc16dcec6f697bc323746000000000000000000000758', + 'bb-a-USDT': + '0xff4ce5aaab5a627bf82f4a571ab1ce94aa365ea600000000000000000000075a' } const addresses: AddressCollection = { @@ -68,7 +94,14 @@ const addresses: AddressCollection = { { assets: [tokens.XSGD, tokens.USDC], address: fxPools.LP_XSGD_USDC, - poolId: fxPoolIds.XSGD_USDC + poolId: fxPoolIds.XSGD_USDC, + gauges: { + main: '0xe42382D005A620FaaA1B82543C9c04ED79Db03bA', // PolygonRootGauge + l2: { + rewardsOnly: '0x3ac845345fc2d51a3006ed384055cd5acde86441', // RewardsOnlyGauge + rewardsHelper: '0xaEb406b0E430BF5Ea2Dc0B9Fe62E4E53f74B3a33' // ChildChainGaugeRewardHelper + } + } }, { assets: [tokens.DAI, tokens.USDC], @@ -78,7 +111,12 @@ const addresses: AddressCollection = { { assets: [tokens.EURS, tokens.USDC], address: fxPools.LP_EURS_USDC, - poolId: fxPoolIds.EURS_USDC + poolId: poolIds.EURS_USDC + }, + { + assets: [tokens.XSGD, tokens['bb-a-usd']], + address: fxPools['LP_XSGD_bb-a-usd'], + poolId: fxPoolIds['LP_XSGD_bb-a-usd'] } ], disabled: [] @@ -92,7 +130,13 @@ const addresses: AddressCollection = { fxPHP: '0x218231089Bebb2A31970c3b77E96eCfb3BA006D1', EURS: '0x73366Fe0AA0Ded304479862808e02506FE556a98', XSGD: '0x8CE3cAc0E6635ce04783709ca3CC4F5fc5304299', - DAI: '0x4746DeC9e833A82EC7C2C1356372CcF2cfcD2F3D' + DAI: '0x4746DeC9e833A82EC7C2C1356372CcF2cfcD2F3D', + USDT: '0x0A6513e40db6EB1b165753AD52E80663aeA50545', + 'bb-a-usd': '0x889E8F2b15A1B462dC74C5F66eF90C3caa46A37D' + }, + assimilators: { + 'bb-a-usd_USD': '0x04E2a492AACbbaC02164da3EEC6404893cA08998', + 'XSGD_bb-a-usd_USD': '0xBef2D248894648A6Fcb214C395044616150C6cEc' }, balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F' }, @@ -163,7 +207,72 @@ const addresses: AddressCollection = { address: ZERO_ADDRESS, USDC: tokens.USDC } - ] + ], + ammV3: { + vault: '0xBA12222222228d8Ba445958a75a0704d566BF2C8', + pools: { + embeddedAssets: [ + tokens.DAI, + tokens.USDC, + tokens.USDT + ], + enabled: [ + { + assets: [tokens.XSGD, tokens['bb-a-usd']], + address: fxPools['LP_XSGD_bb-a-usd'], + poolId: poolIds['XSGD_bb-a-usd'] + }, + ], + linearPools: [ + { + // underlyingToken: tokens.USDC, + address: tokens['bb-a-USDC'], + poolId: poolIds['bb-a-USDC'], + assets: [tokens.USDC] + }, + { + // underlyingToken: tokens.DAI, + address: tokens['bb-a-DAI'], + poolId: poolIds['bb-a-DAI'], + assets: [tokens.DAI] + }, + { + // underlyingToken: tokens.USDT, + address: tokens['bb-a-USDT'], + poolId: poolIds['bb-a-USDT'], + assets: [tokens.USDT] + } + ], + 'bb-a-usd': { + address: tokens['bb-a-usd'], + poolId: poolIds['bb-a-usd'], + assets: [ + tokens['bb-a-DAI'], + tokens['bb-a-USDC'], + tokens['bb-a-USDT'], + ] + }, + fxMetaPools: [ + { + assets: [tokens.XSGD, tokens['bb-a-usd']], + address: fxPools['LP_XSGD_bb-a-usd'], + poolId: poolIds['XSGD_bb-a-usd'], + } + ], + // No direct paths + tokensWithConnectingPath: [ + tokens.XSGD, + ], + tokensWithNoDirectPath: [ + tokens.EURS, + ], + tokensWithDirectPath: [ + tokens.DAI, + tokens.USDC, + tokens.USDT, + ] + } + } } export default addresses diff --git a/src/types.ts b/src/types.ts index 4dbc470..09102a4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3,6 +3,18 @@ type Pool = { poolId: string assets: string[] poolTokens?: string[] + subPools?: { + address: string + poolId: string + assets: string[] + }[] + gauges?: { + main: string // LiquidityGauge (Mainnet) | PolygonRootGauge (Polygon) + l2?: { + rewardsOnly: string // RewardsOnlyGauge + rewardsHelper: string // ChildChainGaugeRewardHelper + } + } } type Assimilators = { @@ -22,6 +34,7 @@ type Assimilators = { TAUD_USD?: string 'bb-a-usd_USD'?: string 'XSGD_bb-a-usd_USD'?: string + 'EURS_bb-a-usd_USD'?: string } export type AddressCollection = { @@ -89,6 +102,7 @@ export type AddressCollection = { LP_LPHP_USDC?: string LP_fxAUD_USDC?: string 'LP_XSGD_bb-a-usd'?: string + 'LP_EURS_bb-a-usd'?: string } genesis: Pool[] enabled: Pool[] @@ -111,7 +125,10 @@ export type AddressCollection = { 'bb-a-usd'?: string } balancerProtocolFeeCollector: string + balancerGaugeController?: string + balancerTokenAdmin?: string } + ammV3?: any tokens: { AMPL?: string wETH?: string @@ -129,6 +146,7 @@ export type AddressCollection = { CHF?: string DAI?: string USDT?: string + BAL?: string 'bb-a-usd'?: string 'bb-a-USDC'?: string 'bb-a-DAI'?: string