Compare commits

..

10 Commits

Author SHA1 Message Date
shawnxin89
280efa1954 add atricrypto3 pool on polygon 2022-01-26 12:24:13 -08:00
shawnxin89
63e800716e add more curve pools 2022-01-26 12:24:13 -08:00
Jacob Evans
61cbb1a098 feat: Additional Curve pools 2022-01-26 12:24:13 -08:00
Github Actions
0cbb523918 Publish
- @0x/asset-swapper@16.48.0
2022-01-26 12:24:13 -08:00
Github Actions
e30bfe1872 Updated CHANGELOGS & MD docs 2022-01-26 12:24:13 -08:00
Jacob Evans
cb09a1da03 chore: Use MIM on Fantom as an intermediary asset (#405) 2022-01-26 12:24:13 -08:00
Github Actions
4e3418ba3e Publish
- @0x/asset-swapper@16.47.0
2022-01-26 12:24:13 -08:00
Github Actions
f25835df19 Updated CHANGELOGS & MD docs 2022-01-26 12:24:13 -08:00
Noah Khamliche
984cffca53 Feat/synapse (#400)
* added synapse support
2022-01-26 12:23:59 -08:00
Jacob Evans
0b785a0f26 feat: Additional Curve pools 2022-01-20 17:03:04 +10:00
5 changed files with 12 additions and 19 deletions

View File

@@ -1,14 +1,4 @@
[
{
"version": "16.49.0",
"changes": [
{
"note": "Add more curve pools",
"pr": 409
}
],
"timestamp": 1643407900
},
{
"version": "16.48.0",
"changes": [

View File

@@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v16.49.0 - _January 28, 2022_
* Add more curve pools (#409)
## v16.48.0 - _January 25, 2022_
* Use `MIM` as an intermediate asset on `Fantom` (#405)

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/asset-swapper",
"version": "16.49.0",
"version": "16.48.0",
"engines": {
"node": ">=6.12"
},

View File

@@ -14,7 +14,6 @@ import {
CURVE_AVALANCHE_INFOS,
CURVE_FANTOM_INFOS,
CURVE_MAINNET_INFOS,
CURVE_OPTIMISM_INFOS,
CURVE_POLYGON_INFOS,
CURVE_V2_AVALANCHE_INFOS,
CURVE_V2_FANTOM_INFOS,
@@ -61,6 +60,7 @@ import {
UNISWAPV2_ROUTER_BY_CHAIN_ID,
WAULTSWAP_ROUTER_BY_CHAIN_ID,
XSIGMA_MAINNET_INFOS,
CURVE_OPTIMISM_INFOS,
} from './constants';
import { CurveInfo, ERC20BridgeSource } from './types';

View File

@@ -201,6 +201,8 @@ export const SELL_SOURCE_FILTER_BY_CHAIN_ID = valueByChainId<SourceFilters>(
]),
[ChainId.Optimism]: new SourceFilters([
ERC20BridgeSource.UniswapV3,
ERC20BridgeSource.Curve,
ERC20BridgeSource.CurveV2,
ERC20BridgeSource.Synapse,
ERC20BridgeSource.Curve,
ERC20BridgeSource.CurveV2,
@@ -345,6 +347,8 @@ export const BUY_SOURCE_FILTER_BY_CHAIN_ID = valueByChainId<SourceFilters>(
]),
[ChainId.Optimism]: new SourceFilters([
ERC20BridgeSource.UniswapV3,
ERC20BridgeSource.Curve,
ERC20BridgeSource.CurveV2,
ERC20BridgeSource.Synapse,
ERC20BridgeSource.Curve,
ERC20BridgeSource.CurveV2,
@@ -519,6 +523,8 @@ export const POLYGON_TOKENS = {
amDAI: '0x27f8d03b3a2196956ed754badc28d73be8830a6e',
amUSDC: '0x1a13f4ca1d028320a707d99520abfefca3998b7f',
amUSDT: '0x60d55f02a771d515e077c9c2403a1ef324885cec',
amWBTC: '0x5c2ed810328349100a66b82b78a1791b101c9d61',
amWETH: '0x28424507fefb6f7f8e9d3860f56504e4e5f5f390',
WBTC: '0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6',
WMATIC: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
WETH: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
@@ -543,6 +549,7 @@ export const AVALANCHE_TOKENS = {
aDAI: '0x47afa96cdc9fab46904a55a6ad4bf6660b53c38a',
aUSDC: '0x46a51127c3ce23fb7ab1de06226147f446e4a857',
aUSDT: '0x532e6537fea298397212f09a61e03311686f548e',
MIM: '0x130966628846bfd36ff31a822705796e8cb8c18d',
nETH: '0x19e1ae0ee35c0404f835521146206595d37981ae',
nUSD: '0xcfc37a6ab183dd4aed08c204d1c2773c0b1bdf46',
aWETH: '0x53f7c5869a859f0aec3d334ee8b4cf01e3492f21',
@@ -664,7 +671,7 @@ export const CURVE_POLYGON_POOLS = {
};
export const CURVE_V2_POLYGON_POOLS = {
atricrypto3: '0x1d8b86e3d88cdb2d34688e87e72f388cb541b7c8',
atricrypto3: '0x1d8b86e3D88cDb2d34688e87E72F388Cb541B7C8',
};
export const CURVE_AVALANCHE_POOLS = {
@@ -1368,12 +1375,12 @@ export const CURVE_FANTOM_INFOS: { [name: string]: CurveInfo } = {
pool: CURVE_FANTOM_POOLS.tri_v2,
gasSchedule: 176e3,
}),
['geist_exchangeunderlying']: createCurveExchangeUnderlyingPool({
['aave_exchangeunderlying']: createCurveExchangeUnderlyingPool({
tokens: [FANTOM_TOKENS.DAI, FANTOM_TOKENS.USDC, FANTOM_TOKENS.fUSDT],
pool: CURVE_FANTOM_POOLS.geist,
gasSchedule: 850e3,
}),
['geist_exchange']: createCurveExchangePool({
['aave_exchange']: createCurveExchangePool({
tokens: [FANTOM_TOKENS.gDAI, FANTOM_TOKENS.gUSDC, FANTOM_TOKENS.gfUSDT],
pool: CURVE_FANTOM_POOLS.geist,
gasSchedule: 150e3,