Skip to content

Instantly share code, notes, and snippets.

@ltfschoen
Last active July 30, 2020 10:12
Show Gist options
  • Save ltfschoen/8e1cf0478a348f1df3bb8a1ee4a24a92 to your computer and use it in GitHub Desktop.
Save ltfschoen/8e1cf0478a348f1df3bb8a1ee4a24a92 to your computer and use it in GitHub Desktop.
Acala

Setup Acala Node

git clone [email protected]:ltfschoen/Acala.git
git remote add upstream https://github.com/AcalaNetwork/Acala
git pull --rebase upstream master
git submodule update --init --recursive
docker build --tag acala:latest .
docker images
docker run --detach --name acala-latest acala:latest
doker ps -a
docker exec -it acala-latest bash
docker exec -it $(docker ps -q) bash
cd /usr/local/bin
acala --name=5DRech3cqa15p3m7rgd1AoLbm8erSbdddUJLo18ESvuUbscN --execution=native -lruntime=debug

Create Acala/Laminar Accounts

Obtain ACA, aUSD, and LAMI tokens

  • Request ACA and LAMI tokens from the faucets by joining Discord https://discord.gg/Z4JtEmM
  • Go in #laminar-faucet and #acala-faucet and run !drip <YOUR_ACCOUNT_ADDRESS>

Interact with Acala and Laminar UIs

Acala

Use DeX to swap tokens

Use DeX to provide liquidity

  • About: "Stablecoins powered by the Acala Network can be transferred to all chains in the Polkadot network, which will boost its liquidity and adoption to a degree that a single-chain asset would not be able to achieve."

  • Go to https://apps.acala.network/deposit

  • Choose "Deposit Liquidity"

  • Exchange ACA for aUSD (e.g. 0.1 ACA for 1 aUSD) dex.addLiquidity

  • Click "Deposit"

Use Honzon stablecoin to collateralize for aUSD

Use Homa protocol to get staking derivative LDOT

Transfer aUSD to Laminar Chain

Use the transferred aUSD for synthetic asset trading

Use the transferred aUSD for margin trading

  • ??? Always gives error marginProtocol.InsufficientFreeMargin

Mint renBTC and use it in above activities

Participate in auctions of system

Laminar

Connect LaminarChain

Connect Ethereum (MetaMask)

Obtain Kovan testnet DAI

View accounts in Subscan Explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment