What it offers
- depositAsset: Deposit LST to receive rsETH
Notes
- Accepts stETH, ETHx, and other LSTs
- Approve the LST to lrtDepositPool before depositing
- minRSETHAmountExpected provides slippage protection
- Use getRsETHAmountToMint() to preview output before depositing
Its names in a program
On Ethereum,Kelp is a namespace: its contracts need no import.
Deployments
ABI
LRTDepositPoolABI
import LRTDepositPoolABI from "./protocols/kelp/LRTDepositPoolABI.json"; Speaks for: lrtDepositPool.
depositAsset(address asset, uint256 depositAmount, uint256 minRSETHAmountExpected, string referralId)getRsETHAmountToMint(address asset, uint256 amount) view returns (uint256 rsethAmountToMint)
RsETHABI
import RsETHABI from "./protocols/kelp/RsETHABI.json"; Speaks for: rsETH.
balanceOf(address account) view returns (uint256)approve(address spender, uint256 amount) returns (bool)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
