-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
352 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...chain/calculation-manager/providers/dexes/fraxtal/curve-fraxtal/curve-fraxtal-provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { BLOCKCHAIN_NAME } from 'src/core/blockchain/models/blockchain-name'; | ||
|
||
import { CurveAbstractProvider } from '../../common/curve-provider/curve-abstract-provider'; | ||
import { CurveFraxtalTrade } from './curve-fraxtal-trade'; | ||
|
||
export class CurveFraxtalProvider extends CurveAbstractProvider<CurveFraxtalTrade> { | ||
public readonly blockchain = BLOCKCHAIN_NAME.FRAXTAL; | ||
|
||
public readonly Trade = CurveFraxtalTrade; | ||
} |
3 changes: 3 additions & 0 deletions
3
...on-chain/calculation-manager/providers/dexes/fraxtal/curve-fraxtal/curve-fraxtal-trade.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { CurveAbstractTrade } from '../../common/curve-provider/curve-abstract-trade'; | ||
|
||
export class CurveFraxtalTrade extends CurveAbstractTrade {} |
26 changes: 26 additions & 0 deletions
26
src/features/on-chain/calculation-manager/providers/dexes/fraxtal/default-constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { wrappedNativeTokensList } from 'src/common/tokens/constants/wrapped-native-tokens'; | ||
import { BLOCKCHAIN_NAME } from 'src/core/blockchain/models/blockchain-name'; | ||
|
||
import { UniswapV2ProviderConfiguration } from '../common/uniswap-v2-abstract/models/uniswap-v2-provider-configuration'; | ||
|
||
const defaultFraxtalRoutingProvidersAddresses = [ | ||
wrappedNativeTokensList[BLOCKCHAIN_NAME.FRAXTAL]!.address, // wfrxETH | ||
'0xFc00000000000000000000000000000000000001', // FRAX | ||
'0xfc00000000000000000000000000000000000005', // sfrxETH | ||
'0xfc00000000000000000000000000000000000002', // FXS | ||
'0xfc00000000000000000000000000000000000008', // sFRAX | ||
'0xfc00000000000000000000000000000000000007', // frxBTC | ||
'0xfc00000000000000000000000000000000000003', // FPI | ||
'0xfc00000000000000000000000000000000000004', // FPIS | ||
'0x2416092f143378750bb29b79eD961ab195CcEea5', // ezETH | ||
'0x4d15EA9C2573ADDAeD814e48C148b5262694646A', // USDT | ||
'0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543' // USDC | ||
]; | ||
|
||
const defaultFraxtalWethAddress = wrappedNativeTokensList[BLOCKCHAIN_NAME.FRAXTAL]!.address; | ||
|
||
export const defaultFraxtalProviderConfiguration: UniswapV2ProviderConfiguration = { | ||
maxTransitTokens: 2, | ||
routingProvidersAddresses: defaultFraxtalRoutingProvidersAddresses, | ||
wethAddress: defaultFraxtalWethAddress | ||
}; |
4 changes: 4 additions & 0 deletions
4
src/features/on-chain/calculation-manager/providers/dexes/fraxtal/frax-swap-v2/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { defaultFraxtalProviderConfiguration } from '../default-constants'; | ||
|
||
export const FRAXSWAP_V2_CONTRACT_ADDRESS = '0x2Dd1B4D4548aCCeA497050619965f91f78b3b532'; | ||
export const FRAXSWAP_V2_PROVIDER_CONFIGURATION = defaultFraxtalProviderConfiguration; |
Oops, something went wrong.