B.Protocol Liquity

Lending & Borrowing.

B.Liquity-v1 connector triggers methods like deposit, withdraw. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Deposit

Deposit LUSD into Stability Pool

spells.add({
  connector: "B-LIQUITY-A",
  method: "deposit",
  args: [amount, getDepositId, setDepositId, setLqtyGainId]
});
Parameter Type Description
amount uint Amount of LUSD to deposit into Stability Pool
getDepositId uint Optional storage slot to retrieve the amount of LUSD from
setDepositId uint Optional storage slot to store the final amount of LUSD deposited
setLqtyGainId uint Optional storage slot to store any LQTY gains in

Withdraw

Withdraw LUSD from Stability Pool

spells.add({
  connector: "B-LIQUITY-A",
  method: "withdraw",
  args: [numShares, getWithdrawId, setWithdrawId, setLqtyGainId]
});
Parameter Type Description
numShares uint amount of shares to withdraw from the BAMM
getWithdrawId uint Optional storage slot to retrieve the amount of LUSD to withdraw from
setWithdrawId uint Optional storage slot to store the withdrawn LUSD
setLqtyGainId uint Optional storage slot to store any LQTY gains in

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.