Lendle has closed
The Lendle app is no longer running. The Lendle contracts on Mantle still work: every market is frozen, so nobody can deposit or borrow, but you can still withdraw what you supplied and repay what you borrowed, directly on the Mantle block explorer.
Before you start
- Use the wallet that holds your Lendle position, on the Mantle network, with a little MNT for gas.
- Open the contract link below on mantlescan.xyz, go to Contract → Write as Proxy (or Write Contract where there is no proxy tab), and click Connect to Web3.
- To take out everything, enter this number as the amount. The contracts read it as "all":
115792089237316195423570985008687907853269984665640564039457584007913129639935
1. Withdraw what you supplied (main market)
If you also borrowed, repay first (step 2), or the withdrawal can fail.
Call withdraw with:
asset: the token's address from the table below (not the "lToken" you hold)amount: the "all" number aboveto: your own wallet address
MNT comes back as WMNT. To turn it into MNT, call withdraw(amount) on the WMNT contract 0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8, with the amount in wei (18 decimals).
If a withdrawal fails, the market may be short of free cash because much of it is lent out. Try a smaller amount, or try again later after borrowers repay.
2. Repay what you borrowed
- On the borrowed token's own contract (address in the table above, Write Contract), call
approvewithspender= the LendingPool address0xCFa5aE7c2CE8Fadc6426C1ff872cA45378Fb7cF3andamount= the "all" number. - On the LendingPool, call
repaywithasset= the token address,amount= the "all" number,rateMode=2(variable rate; use1if you chose a stable rate) andonBehalfOf= your wallet address. Your wallet needs enough of that token to cover the loan plus interest. - Then withdraw your collateral as in step 1. You can set the approval back to
0afterwards.
3. Isolated markets
Each isolated market is its own pool contract. Use the same withdraw(asset, amount, to) on the pool you used. To repay there, approve the pool's address and call repay(asset, amount, interestRateMode = 2, onBehalfOf).
4. Lendle vaults (lendleUSDe, lendleWETH, lendleMNT)
- On the vault contract, under Read, call
balanceOfwith your wallet address. That number is your shares. - Under Write, call
redeemwithshares= that number,receiver= your wallet,owner= your wallet.
| Vault | Contract |
|---|---|
| lendleUSDe | 0xE12EED61E7cC36E4CF3304B8220b433f1fD6e254 |
| lendleWETH | 0x5A285484126D4e1985AC2cE0E1869D6384027727 |
| lendleMNT | 0xf36a57369362eB1553f24C8ad50873723E6e1173 |
5. Staked or locked LEND
getReward()claims your rewards.withdrawExpiredLocks()returns locked LEND whose 13-week lock has ended.exit(true)takes out all your unlocked and vested LEND and claims rewards. LEND you earned that is still vesting is cut by 50% if you take it out early.
6. LEND–WMNT liquidity in the farm
Call emergencyWithdraw with _token = the LP token 0x4c57BE599d0e0414785943569E9B6A66dA79Aa6b to take out all your LP tokens (pending farm rewards are skipped). Then remove the liquidity on FusionX.