-
Notifications
You must be signed in to change notification settings - Fork 22
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 #1370 from bancorprotocol/add-celo-chain
Add celo chain
- Loading branch information
Showing
29 changed files
with
249 additions
and
24 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
Binary file modified
BIN
+2 Bytes
(100%)
...screenshots/simulator/recurring/Recurring limit limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable buy range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-509 Bytes
(99%)
e2e/screenshots/strategy/overlapping/Overlapping/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring limit limit/withdraw/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring limit range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.85 KB
(86%)
e2e/screenshots/strategy/recurring/Recurring limit range/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring limit range/renew/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring limit range/withdraw/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring range limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
import { AppConfig } from 'config/types'; | ||
import IconCeloLogo from 'assets/logos/celologo.svg'; | ||
|
||
const addresses = { | ||
CELO: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', | ||
CELO_ERC20: '0x471EcE3750Da237f93B8E339c536989b8978a438', | ||
CELO_ALFAJORES: '0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9', | ||
ZERO: '0x0000000000000000000000000000000000000000', | ||
CUSD: '0x765de816845861e75a25fca122bb6898b8b1282a', | ||
USDC: '0xceba9300f2b948710d2653dd7b07f33a8b32118c', | ||
USDT: '0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e', | ||
}; | ||
|
||
export const commonConfig: AppConfig = { | ||
mode: 'development', | ||
appName: 'Carbon DeFi', | ||
appUrl: 'https://celo.carbondefi.xyz', | ||
carbonApi: 'https://celo-api.carbondefi.xyz/v1/', | ||
selectedConnectors: ['MetaMask', 'Coinbase Wallet', 'Safe'], | ||
blockedConnectors: ['Tailwind', 'Compass Wallet', 'Seif'], | ||
walletConnectProjectId: '', | ||
isSimulatorEnabled: false, | ||
policiesLastUpdated: '27 May, 2024', | ||
network: { | ||
name: 'Celo Network', | ||
logoUrl: IconCeloLogo, | ||
chainId: 42220, | ||
blockExplorer: { | ||
name: 'CeloScan', | ||
url: 'https://celoscan.io', | ||
}, | ||
rpc: { | ||
url: import.meta.env.VITE_CHAIN_RPC_URL || 'https://forno.celo.org', | ||
}, | ||
defaultLimitedApproval: true, | ||
gasToken: { | ||
name: 'CELO (erc20)', | ||
symbol: 'CELO (erc20)', | ||
decimals: 18, | ||
address: addresses.CELO_ERC20, | ||
logoURI: | ||
'https://raw.githubusercontent.com/celo-org/celo-token-list/main/assets/celo_logo.svg', | ||
}, | ||
}, | ||
sdk: { | ||
cacheTTL: 0, | ||
}, | ||
defaultTokenPair: [addresses.CELO, addresses.USDC], | ||
popularPairs: [ | ||
[addresses.CELO, addresses.CUSD], | ||
[addresses.CELO, addresses.USDC], | ||
[addresses.CELO, addresses.USDT], | ||
], | ||
popularTokens: { | ||
base: [addresses.CELO, addresses.CUSD, addresses.USDT, addresses.USDC], | ||
quote: [addresses.CELO, addresses.CUSD, addresses.USDT, addresses.USDC], | ||
}, | ||
addresses: { | ||
tokens: addresses, | ||
carbon: { | ||
carbonController: '0x6619871118D144c1c28eC3b23036FC1f0829ed3a', | ||
voucher: '0x5E994Ac7d65d81f51a76e0bB5a236C6fDA8dBF9A', | ||
}, | ||
}, | ||
utils: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 13112599, | ||
}, | ||
}, | ||
tokenListOverride: [ | ||
{ | ||
name: 'CELO', | ||
symbol: 'CELO', | ||
decimals: 18, | ||
address: addresses.CELO, | ||
logoURI: | ||
'https://raw.githubusercontent.com/celo-org/celo-token-list/main/assets/celo_logo.svg', | ||
}, | ||
{ | ||
name: 'CELO (Alfajores Testnet)', | ||
symbol: 'CELO (Alfajores)', | ||
decimals: 18, | ||
address: addresses.CELO_ALFAJORES, | ||
logoURI: | ||
'https://raw.githubusercontent.com/celo-org/celo-token-list/main/assets/celo_logo.svg', | ||
}, | ||
], | ||
tokenLists: [ | ||
{ | ||
uri: 'https://raw.githubusercontent.com/celo-org/celo-token-list/main/celo.tokenlist.json', | ||
}, | ||
], | ||
tenderly: { | ||
nativeTokenDonorAccount: '0xf89d7b9c864f589bbF53a82105107622B35EaA40', | ||
faucetAmount: 1000, | ||
faucetTokens: [ | ||
{ | ||
donorAccount: '0xD533Ca259b330c7A88f74E000a3FaEa2d63B7972', | ||
tokenContract: addresses.CUSD, | ||
decimals: 18, | ||
symbol: 'CUSD', | ||
}, | ||
{ | ||
donorAccount: '0xf6436829Cf96EA0f8BC49d300c536FCC4f84C4ED', | ||
tokenContract: addresses.USDC, | ||
decimals: 6, | ||
symbol: 'USDC', | ||
}, | ||
{ | ||
donorAccount: '0x5754284f345afc66a98fbB0a0Afe71e0F007B949', | ||
tokenContract: addresses.USDT, | ||
decimals: 6, | ||
symbol: 'USDT', | ||
}, | ||
], | ||
}, | ||
}; |
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,8 @@ | ||
import { AppConfig } from '../types'; | ||
import { commonConfig } from './common'; | ||
|
||
const config: AppConfig = { | ||
...commonConfig, | ||
mode: 'development', | ||
}; | ||
export default config; |
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 { AppConfig } from '../types'; | ||
import { commonConfig } from './common'; | ||
|
||
const config: AppConfig = { | ||
...commonConfig, | ||
mode: 'production', | ||
sentryDSN: | ||
'https://1aaa1b99875949cdb08089743dcc1ec5@o1249488.ingest.us.sentry.io/4505074572197888', | ||
}; | ||
export default config; |
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
Oops, something went wrong.