Skip to content

Instantly share code, notes, and snippets.

@kaleb-keny
Last active Nov 19, 2021
Embed
What would you like to do?
Mint sUSD with LUSD

How To Mint sUSD with LUSD


Step 0

Buy LUSD on 1inch on ETH Mainnet

Step 1

Bridge LUSD to Optimism with the gateway Alternate image text

Step 2

On the LUSD token contract on L2, approve the wrappr contract to spend your LUSD Link to LUSD Contract Approve LUSD Spending

  1. Press on Connect Web3
  2. Enter the LUSD Wrappr Contract Address 0x8a91e92fdd86e734781c38db52a390e1b99fba7c under the spender box
  3. Enter the amount of LUSD that you would like to convert to sUSD in the value box, if it's 100 LUSD, then you need to enter 100000000000000000000 which is 100 and 18 zeroes. Etherscan makes it easy to add zeroes by pressing on the + button or use the ETH to WEI conversion tool that adds 18 zeroes by entering the amount in the ETH box and copying the amount in the Wei box. 18_zeroes
  4. Press Write and Send the transaction

Step 3

Go to the LUSD Wrappr contract and mint sUSD with your LUSD Approve LUSD Spending

  1. Press on Connect Web3
  2. Enter the amount of LUSD that you would like to convert to sUSD in the value box, if it's 100 LUSD, then you need to enter 100000000000000000000 which is 100 and 18 zeroes. Etherscan makes it easy to add zeroes by pressing on the + button or use the ETH to WEI conversion tool that adds 18 zeroes by entering the amount in the ETH box and copying the amount in the Wei box.
  3. Press Write and Send the transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment