revo-market / make-crypto-mobile-hackathon

Build the next generation of Defi accessibility with Celo mobile-first blockchain! Create new solutions on top of the Celo Ledger - DeFi, NFTs, Smart Contracts, Developer tooling and more.
1 stars 1 forks source link

Get LP tokens on Alfajores #17

Closed cajubelt closed 2 years ago

cajubelt commented 2 years ago

As a developer testing or demo-ing farm bot, I need to be able to get LP tokens on Alfajores.

AC:

cajubelt commented 2 years ago

https://docs.ubeswap.org/code-and-contracts/using-the-alfajores-testnet

EDIT: turns out the link from this^ is broken, and the latest way of accessing Ubeswap on Alfajores is to just connect to an Alfajores wallet.

I tried connecting with a Celo Extension Wallet and I couldn't do anything with the Ubeswap UI. It might be different with Valora or Ledger though, idk. The docs make it sound like you can at least trade cUSD and Celo when connected with one of those wallets.

EDIT2: Connecting to Ubeswap with a Ledger Alfajores wallet on desktop doesn't work, and connecting with a Valora Alfajores wallet won't even connect successfully.

Looks like we're going to have to do this the hard way, and figure out how to deploy the contracts ourselves.

I read something on Celo docs about a docker image with a local chain and some core contracts deployed, would be cool if we could figure out how to do that with the Ubeswap contracts so nobody else has to go through this pain again..

cajubelt commented 2 years ago
  1. create a new Alfajores wallet on metamask
  2. fund the wallet with the alfajores faucet
  3. open app.ubeswap.org and connect to the alfajores wallet with metamask
  4. import mcUSD and mcEUR and cUSD tokens from their contract addresses
  5. swap for mcUSD / mcEUR
  6. add mcUSD/mcEUR to a pool
  7. viola!