Skip to content

Commit

Permalink
fix: another batch of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Dec 19, 2024
1 parent c311291 commit 0700d3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function testForNetwork(
}

describe('AaveV3Stata E2E', () => {
const dexKey = 'AaveV3Stata';
const dexKey = 'AaveV3StataV2';

// polygon is not yet live
describe.skip('Polygon', () => {
Expand Down
12 changes: 6 additions & 6 deletions src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Utils, getBigIntPow, getDexKeysWithNetwork } from '../../utils';
import { Context, IDex } from '../../dex/idex';
import { IDexHelper } from '../../dex-helper/idex-helper';
import {
AaveV3StataData,
AaveV3StataV2Data,
Rounding,
StataFunctions,
StataToken,
Expand Down Expand Up @@ -48,7 +48,7 @@ const RAY = BigInt(`1${'0'.repeat(27)}`);

export class AaveV3StataV2
extends SimpleExchange
implements IDex<AaveV3StataData>
implements IDex<AaveV3StataV2Data>
{
readonly hasConstantPriceLargeAmounts = false;

Expand Down Expand Up @@ -169,7 +169,7 @@ export class AaveV3StataV2
side: SwapSide,
blockNumber: number,
limitPools?: string[],
): Promise<null | ExchangePrices<AaveV3StataData>> {
): Promise<null | ExchangePrices<AaveV3StataV2Data>> {
const src = getTokenType(this.network, srcToken.address);
const dest = getTokenType(this.network, destToken.address);

Expand Down Expand Up @@ -284,7 +284,7 @@ export class AaveV3StataV2
}

getCalldataGasCost(
poolPrices: PoolPrices<AaveV3StataData>,
poolPrices: PoolPrices<AaveV3StataV2Data>,
): number | number[] {
return CALLDATA_GAS_COST.DEX_NO_PAYLOAD;
}
Expand All @@ -307,7 +307,7 @@ export class AaveV3StataV2
// destToken: string,
// srcAmount: string,
// destAmount: string,
// data: AaveV3StataData,
// data: AaveV3StataV2Data,
// side: SwapSide,
// ): Promise<SimpleExchangeParam> {
// const { exchange, srcType, destType } = data;
Expand Down Expand Up @@ -370,7 +370,7 @@ export class AaveV3StataV2
srcAmount: NumberAsString,
destAmount: NumberAsString,
recipient: Address,
data: AaveV3StataData,
data: AaveV3StataV2Data,
side: SwapSide,
_: Context,
executorAddress: Address,
Expand Down
2 changes: 1 addition & 1 deletion src/dex/aave-v3-stata-v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export enum TokenType {
UNKNOWN,
}

export type AaveV3StataData = {
export type AaveV3StataV2Data = {
// TODO: AaveV3StataData is the dex data that is
// returned by the API that can be used for
// tx building. The data structure should be minimal.
Expand Down
1 change: 1 addition & 0 deletions tests/constants-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,7 @@ export const Holders: {
eETH: '0x0f1DfeF1a40557d279d0de6E49aB306891A638b8',
stataUSDT: '0x6803364AceD5181877abC11E865FB27cB654a426',
aaveUSDT: '0x32c98a981Fe7C333Bd4e8E7630E8e0CF5ce20987',
waEthUSDT: '0xbA1333333333a1BA1108E8412f11850A5C319bA9',
weETH: '0x267ed5f71EE47D3E45Bb1569Aa37889a2d10f91e',
rUSD: '0xEC2eda1C4F981E468ABF62424a10B69B738b498E',
arUSD: '0xeFc24206053a452e2299BF3b8f964512b041Db4C',
Expand Down

0 comments on commit 0700d3a

Please sign in to comment.