clean up codes
This commit is contained in:
@@ -11,9 +11,9 @@ import {
|
||||
COMETHSWAP_ROUTER_BY_CHAIN_ID,
|
||||
COMPONENT_POOLS_BY_CHAIN_ID,
|
||||
CRYPTO_COM_ROUTER_BY_CHAIN_ID,
|
||||
CURVE_FANTOM_INFOS,
|
||||
CURVE_MAINNET_INFOS,
|
||||
CURVE_POLYGON_INFOS,
|
||||
CURVE_FANTOM_INFOS,
|
||||
CURVE_V2_MAINNET_INFOS,
|
||||
CURVE_V2_POLYGON_INFOS,
|
||||
CURVE_V2_FANTOM_INFOS,
|
||||
@@ -394,14 +394,9 @@ export function getCurveLikeInfosForPair(
|
||||
| ERC20BridgeSource.ACryptos,
|
||||
): CurveDetailedInfo[] {
|
||||
let pools: CurveInfo[] = [];
|
||||
console.log("Inside 2", source);
|
||||
switch (source) {
|
||||
case ERC20BridgeSource.Curve:
|
||||
pools = getCurveInfosForPair(chainId, takerToken, makerToken);
|
||||
console.log("Inside 2 chainId", chainId);
|
||||
console.log("Inside 2 pools", pools);
|
||||
console.log("Inside 2 takerToken", takerToken);
|
||||
console.log("Inside 2 makerToken", makerToken);
|
||||
break;
|
||||
case ERC20BridgeSource.CurveV2:
|
||||
pools = getCurveV2InfosForPair(chainId, takerToken, makerToken);
|
||||
|
||||
@@ -1020,7 +1020,7 @@ export const CURVE_FANTOM_INFOS: { [name: string]: CurveInfo } = {
|
||||
pool: CURVE_FANTOM_POOLS.fUSDT,
|
||||
gasSchedule: 587e3,
|
||||
}),
|
||||
}
|
||||
};
|
||||
|
||||
export const CURVE_V2_FANTOM_INFOS: { [name: string]: CurveInfo } = {
|
||||
[CURVE_V2_FANTOM_POOLS.tricrypto]: createCurveExchangeV2Pool({
|
||||
|
||||
@@ -1084,7 +1084,6 @@ export class SamplerOperations {
|
||||
return this._createBatch(
|
||||
subOps,
|
||||
(samples: BigNumber[][]) => {
|
||||
console.log("Median", samples);
|
||||
if (samples.length === 0) {
|
||||
return ZERO_AMOUNT;
|
||||
}
|
||||
@@ -1109,13 +1108,9 @@ export class SamplerOperations {
|
||||
takerFillAmounts: BigNumber[],
|
||||
): BatchedOperation<DexSample[][]> {
|
||||
const subOps = this._getSellQuoteOperations(sources, makerToken, takerToken, takerFillAmounts);
|
||||
console.log(sources);
|
||||
console.log(takerFillAmounts);
|
||||
console.log("subOps", subOps);
|
||||
return this._createBatch(
|
||||
subOps,
|
||||
(samples: BigNumber[][]) => {
|
||||
console.log("Sell", samples);
|
||||
return subOps.map((op, i) => {
|
||||
return samples[i].map((output, j) => ({
|
||||
source: op.source,
|
||||
@@ -1171,7 +1166,6 @@ export class SamplerOperations {
|
||||
if (isBadTokenForSource(makerToken, source) || isBadTokenForSource(takerToken, source)) {
|
||||
return [];
|
||||
}
|
||||
console.log("Inside", source);
|
||||
switch (source) {
|
||||
case ERC20BridgeSource.Eth2Dai:
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user