revo-market/make-crypto-mobile-hackathon

Get LP tokens on Alfajores

Closed this issue · 2 comments

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

AC:

  • a way of acquiring Ubeswap LP tokens on Alfajores is found and documented (can be manual)

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..

  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!