-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #889 from osmosis-labs/JP69/move-axl-transfer-fee
Move axl Transfer Fee Definition
- Loading branch information
Showing
14 changed files
with
327 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from "./queries"; | ||
export * from "./source-chain-config"; | ||
export * from "./transfer-status-source"; | ||
export * from "./types"; | ||
export * from "./utils"; |
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,65 @@ | ||
import { SourceChainConfig } from "./types"; | ||
|
||
const IS_TESTNET = process.env.NEXT_PUBLIC_IS_TESTNET === "true"; | ||
|
||
/** https://axelarscan.io/assets | ||
* Ensure that users bridge sufficient amounts from EthMainnet=>NonEthEvm via Axelar before enabling. | ||
*/ | ||
export const SourceChainConfigs: { | ||
[asset: string]: { [chain: string]: SourceChainConfig }; | ||
} = { | ||
usdc: { | ||
ethereum: { | ||
id: IS_TESTNET | ||
? ("Ropsten Test Network" as const) | ||
: ("Ethereum" as const), | ||
erc20ContractAddress: IS_TESTNET | ||
? "0x526f0A95EDC3DF4CBDB7bb37d4F7Ed451dB8e369" | ||
: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // test: 'aUSDC' on metamask/etherscan | ||
logoUrl: "/networks/ethereum.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "10500000", // From https://docs.axelar.dev/resources/mainnet#cross-chain-relayer-gas-fee | ||
}, | ||
bnbChain: { | ||
id: "Binance" as const, | ||
erc20ContractAddress: "0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3", | ||
logoUrl: "/networks/binance.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000", | ||
}, | ||
avalanche: { | ||
id: "Avalanche" as const, | ||
erc20ContractAddress: "0xfaB550568C688d5D8A52C7d794cb93Edc26eC0eC", | ||
logoUrl: "/networks/avalanche.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000", | ||
}, | ||
polygon: { | ||
id: "Polygon" as const, | ||
erc20ContractAddress: "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed", | ||
logoUrl: "/networks/polygon.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000", | ||
}, | ||
fantom: { | ||
id: "Fantom" as const, | ||
erc20ContractAddress: "0x1B6382DBDEa11d97f24495C9A90b7c88469134a4", | ||
logoUrl: "/networks/fantom.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000", | ||
}, | ||
moonbeam: { | ||
id: "Moonbeam" as const, | ||
erc20ContractAddress: "0xCa01a1D0993565291051daFF390892518ACfAD3A", | ||
logoUrl: "/networks/moonbeam.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000", | ||
}, | ||
}, | ||
weth: { | ||
ethereum: { | ||
id: IS_TESTNET | ||
? ("Ropsten Test Network" as const) | ||
: ("Ethereum" as const), | ||
erc20ContractAddress: IS_TESTNET | ||
? "0xc778417E063141139Fce010982780140Aa0cD5Ab" | ||
: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", | ||
logoUrl: "/networks/ethereum.svg", | ||
transferFeeMinAmount: IS_TESTNET ? "60000000000000" : "6300000000000000", | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.