-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description E2E funding script broke because the Exchange contract (Mento V1) was retired. We now have to use Mento V2. See celo-org/developer-tooling#5 (comment) and this Slack [thread](https://valora-app.slack.com/archives/C02E2FE98P2/p1707313527742089). ### Test plan - Faucet script works ``` ❯ NODE_OPTIONS='--unhandled-rejections=strict' yarn ts-node ./e2e/scripts/fund-e2e-accounts.ts yarn run v1.22.21 $ /Users/jean/src/github.com/valora-inc/wallet/node_modules/.bin/ts-node ./e2e/scripts/fund-e2e-accounts.ts Initial balance for 0x6131a6d616a4be3737b38988847270a64bc10caa: ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 296.4630610934859 │ │ cUSD │ 210.81235045479227 │ │ cEUR │ 254.58206490185884 │ │ cREAL │ 0.5079986401468344 │ └─────────┴────────────────────┘ Initial balance for 0x86b8f44386cb2d457db79c3dab8cf42f9d8a3fc0: ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 200.1086345828401 │ │ cUSD │ 284.97333333333336 │ │ cEUR │ 299.99761512691964 │ │ cREAL │ 4.97972124268512 │ └─────────┴────────────────────┘ Initial faucet balance: ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 0.3998044596294922 │ │ cUSD │ 314.92579075821374 │ │ cEUR │ 208.37725279341225 │ │ cREAL │ 547.2075494343318 │ └─────────┴────────────────────┘ CELO balance is 0.3998044596294922, which is lower than target 174.56761600375182. Buying 174.16781154412234 CELO with ~126.230605652876074139 cUSD with max slippage of 1%. Received allowance tx hash 0x779e593031093e3c8fce959660f5eb66d35461e1a601113cf34de762140bce0b with status 1 Received swap tx hash 0xcc5e02c3ae987f49cd78cbb14dcd9327aa3cb65c5602a9181a57e5b08d3e0115 with status 1 cUSD balance is 314.92579075821374, which is higher than target 174.56761600375182. Selling 140.3581747544619 cUSD for ~193.65329082439476394 CELO with max slippage of 1%. Received allowance tx hash 0x199799819bf1c921a9f8822dc4cce26b49b7d5ff1297d78c036e21715724a13e with status 1 Received swap tx hash 0xde418d00719b76760731170153a437901f4d3e1187f2b37ef17f5c4405042ebd with status 1 cEUR balance is 208.37725279341225, which is higher than target 174.56761600375182. Selling 33.80963678966043 cEUR for ~50.263771272202399881 CELO with max slippage of 1%. Received allowance tx hash 0x4b7e3e7c64dc0dec5c7c6934b37d9e4cee6d3db6a242c5d446081663109f7f5d with status 1 Received swap tx hash 0x3471806819ad3e914e08a4f7fd2694df606616121ac3f1e8657fdf3cd23dfa78 with status 1 Finished funding wallets. E2E Test Account: 0x6131a6d616a4be3737b38988847270a64bc10caa ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 296.4630610934859 │ │ cUSD │ 210.81235045479227 │ │ cEUR │ 254.58206490185884 │ │ cREAL │ 0.5079986401468344 │ └─────────┴────────────────────┘ E2E Test Account Secure Send: 0x86b8f44386cb2d457db79c3dab8cf42f9d8a3fc0 ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 200.1086345828401 │ │ cUSD │ 284.97333333333336 │ │ cEUR │ 299.99761512691964 │ │ cREAL │ 4.97972124268512 │ └─────────┴────────────────────┘ Valora Test Faucet: 0xe5F5363e31351C38ac82DBAdeaD91Fd5a7B08846 ┌─────────┬────────────────────┐ │ (index) │ Values │ ├─────────┼────────────────────┤ │ CELO │ 418.478571902849 │ │ cUSD │ 48.33701035087574 │ │ cEUR │ 174.56761600375185 │ │ cREAL │ 547.2075494343318 │ └─────────┴────────────────────┘ ✨ Done in 55.69s. ``` ### Related issues - N/A ### Backwards compatibility Yes
- Loading branch information
1 parent
a547627
commit fe63cf5
Showing
3 changed files
with
183 additions
and
147 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
Oops, something went wrong.