What it offers
- stake: Stake ETH for mETH with minimum output check
Notes
- Non-rebasing token backed by Mantle treasury
- stake() is payable - send ETH as msg.value
- minMETHAmount param provides slippage protection
- Use mETHToETH()/ethToMETH() to preview exchange rates
- The Staking contract (
staking), not the token. - The mETH token (
mETH).
Its names in a program
On Ethereum,MantleMeth is a namespace: its contracts need no import.
Deployments
ABI
METHABI
import METHABI from "./protocols/mantle-meth/METHABI.json"; Speaks for: mETH.
balanceOf(address account) view returns (uint256)approve(address spender, uint256 amount) returns (bool)
METHStakingABI
import METHStakingABI from "./protocols/mantle-meth/METHStakingABI.json"; Speaks for: staking.
stake(uint256 minMETHAmount) payablemETHToETH(uint256 mETHAmount) view returns (uint256)ethToMETH(uint256 ethAmount) view returns (uint256)
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.
