Skip to content

Commit

Permalink
feat: crveth pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Makeev Ivan committed Nov 29, 2021
1 parent ceba221 commit be04f1e
Show file tree
Hide file tree
Showing 6 changed files with 1,304 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "1.9.1",
"version": "1.10.0",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"scripts": {
Expand Down
25 changes: 25 additions & 0 deletions src/constants/abis/abis-ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import tricrypto2DepositABI from './json/tricrypto2/deposit.json';
import eurtSwapABI from './json/eurt/swap.json';
import eurtusdSwapABI from './json/eurtusd/swap.json';
import eurtusdDepositABI from './json/eurtusd/deposit.json';
import crvethSwap from './json/crveth/swap.json';
import { PoolDataInterface } from "../../interfaces";


Expand Down Expand Up @@ -1525,4 +1526,28 @@ export const poolsData: { [index: string]: PoolDataInterface } = {
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
],
},

crveth: {
swap_abi: crvethSwap,
N_COINS: 2,
is_crypto: true,
underlying_decimals: [18, 18],
decimals: [18, 18],
tethered: [false, false],
use_lending: [false, false],
is_plain: [true, true],
underlying_coins: ['ETH', 'CRV'],
coins: ['WETH', 'CRV'],
swap_address: '0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511',
token_address: '0xEd4064f376cB8d68F770FB1Ff088a3d0F3FF5c4d',
gauge_address: '0x936734ea750bb194ddb4892b191b6bd5c43a3985', // Fake pool address to prevent old multicalls from
underlying_coin_addresses: [
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
'0xD533a949740bb3306d119CC777fa900bA034cd52',
],
coin_addresses: [
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
'0xD533a949740bb3306d119CC777fa900bA034cd52',
],
},
};
Loading

0 comments on commit be04f1e

Please sign in to comment.