Lendlexyz used Mantle lending pools to connect deposits with collateral-backed borrowing
Lendlexyz was the non-custodial Mantle lending market known as Lendle, where supplied crypto assets supported overcollateralized loans. Its shutdown notice asked users to close positions and remove liquidity. During operation, pool utilization shaped variable borrowing rates, while separate contracts tracked deposits, debt, and LEND rewards. The separate staking system included locked LEND and rewards that followed their own withdrawal conditions.
Updated -
A borrowing rate described the cost of debt over time. It did not describe how much debt the collateral could support, whether supplied assets were available for withdrawal, or when locked incentives could be released.
Pool utilization shaped variable borrowing costs
Pool utilization connected demand for borrowed assets with the variable rate charged within each reserve. The lending markets used Aave core contracts, with asset-specific interest-rate parameters. In the historical interest model, available capital supported lower rates. Scarcer capital pushed rates higher to encourage repayments and additional deposits. The curve had a gentler slope below its configured optimal utilization and a steeper slope above that point.
A quoted percentage alone could not determine the final amount owed. Borrowed principal, elapsed time, and subsequent rate changes all affected variable debt, so the same initial quote could lead to different costs over different holding periods.
Deposits and other lending operations
Depositors supplied supported assets to the LendingPool and received corresponding interest-bearing aTokens. Withdrawal burned the relevant aTokens and returned underlying assets, subject to the pool's applicable conditions. An aToken balance represented a supplied position; it was separate from an allocation of incentive rewards.
Native-token access had its own gateway, WETHGateway, which handled wrapping and unwrapping around lending operations. The pool also included a flash-loan route for contracts to borrow liquidity and repay it with a premium within the same transaction.
Supply ownership and transaction sender could also differ. The pool supported deposits on behalf of another address, while assigning debt to another address required a credit delegation allowance.
How did collateral support a loan?
Collateral enabled a loan when an eligible deposited position supplied sufficient backing under the reserve's configured rules. A supplied balance alone did not establish how much could be borrowed. The deposit also had to be enabled as collateral.
Borrowing limits and liquidation exposure
Loan-to-value settings
The Pool Admin could configure an asset's loan-to-value ratio, which helped determine borrowing capacity from collateral value. That capacity differed from an existing debt balance. Using supplied assets as backing also constrained withdrawals when the outstanding loan relied on that collateral.
Health factor
The health factor reflected the loan's collateral protection relative to its debt and the applicable liquidation thresholds. Interest accrual could weaken that protection even without another borrowing action. When a position crossed its liquidation boundary, another participant could repay part of the debt and receive collateral with a liquidation bonus, choosing between the relevant aTokens and the underlying asset as the payout form. Repaying debt or adding collateral increased the health factor under the historical lending mechanism.
The pool used configured oracle prices for those valuations. Changes in asset prices could therefore affect liquidation exposure independently of borrowing rates.
Stable and variable debt carried different rate conditions
The historical LendingPool supported both utilization-sensitive variable debt and a separate stable-rate model. Stable loans retained their issuance rate until specified rebalancing conditions applied. VariableDebtToken and StableDebtToken recorded these obligations, while aTokens represented supplied assets. Borrowing created debt tokens, and repayment burned them. Rate-model switching moved a loan between the supported interest models, subject to the reserve controls that could restrict rate swaps.
LEND incentives followed separate locking rules
LEND staking and lending interest belonged to different parts of the historical market. MultiFeeDistribution handled staking and rewards in multiple tokens. Its owner could disable reward claiming. The September 25, 2023 Mantle Mainnet audit update described a 13-week staking-token lock in MultiFeeDistribution. Locked staking principal could not be withdrawn before that period ended, while earned rewards had an early-withdrawal path with a penalty.
Unlocked staking tokens did not earn staking-token rewards, while other reward accrual could continue under that implementation.
What did the shutdown notice mean for existing positions?
The shutdown notice asked users to close positions and remove liquidity, making existing debt and supplied balances the immediate concern. An account could also hold incentive balances governed by a different contract from its lending deposits.
Match lending withdrawals and reward claims to their balances
A lending withdrawal redeemed aTokens, while an incentive claim concerned rewards in the staking system.
- Identify whether the balance was supplied assets, recorded debt, or staking rewards.
- If supplied assets backed a loan, account for collateral constraints before attempting their withdrawal.
- Treat debt repayment as a separate obligation from claiming incentives or withdrawing an unrelated deposit.
- For locked LEND, distinguish staked principal from earned rewards before applying any early-withdrawal rule.
The available wind-down action still depended on the affected reserve, any pool pause, the applicable locking state, and whether reward claiming was enabled.
Pool controls could alter access and risk
Administrative roles could change reserve settings, update implementations, and alter oracle sources. A reserve freeze could disallow deposits, borrowing, and rate swaps. The Emergency Admin also held a pool-wide pause power, which differed from freezing an individual reserve.
SourceHat's Lendle Smart Contract Audit Report was updated on September 25, 2023, to reflect Mantle Mainnet deployment. The report identified no findings and separately flagged centralized control. Its review concerned the specified deployed contracts. Authorized implementation upgrades could change the code beyond the version that had been reviewed.
A stable loan addressed routine rate changes; it retained the same categories of collateral and administrative exposure as variable borrowing.
Lendlexyz: common questions
-
Were the historical Lendle debt tokens transferable between wallets?
- The audited StableDebtToken and VariableDebtToken contracts did not support debt transfers between wallets. They shared parts of the ERC-20 model but omitted transfer functionality because they represented non-transferable borrowing obligations.
-
Could withdrawn assets go to an address other than the depositor?
- The audited LendingPool supported sending withdrawn underlying assets to a different recipient address. That choice concerned where the withdrawn assets went; it did not change which supplied position funded the withdrawal. A deposit made on behalf of another address separately determined who received the aTokens.
-
Did historical loans have a fixed repayment date?
- The audited lending model imposed no fixed repayment deadline on ordinary loans. Interest continued accruing while debt remained, and liquidation conditions still applied. That historical absence of a loan maturity date did not establish an unlimited withdrawal window or override the later request to close positions during shutdown.
-
How did WETHGateway handle the native token?
- The historical WETHGateway converted the blockchain's native token into its wrapped form for deposits and repayments. It reversed that conversion for borrowing and withdrawals. The gateway also returned excess tokens when a repayment sent more than required.
-
What happened if an incentive claim hit the token mint cap?
- The historical incentive controller could not mint rewards beyond the token supply cap. Rewards were minted when claimed, so an accrued claimable amount could include rewards that could no longer be minted after the cap was reached. A pending reward amount therefore differed from tokens already issued.
-
When did TokenVesting allocations begin unlocking?
- TokenVesting started its schedule only after the owner executed the start function. Allocations then vested linearly across the owner-selected duration, and claiming minted unlocked tokens in MultiFeeDistribution. That vesting schedule governed the release of allocations separately from the staking-token lock.
-
How did flash-loan repayment differ from ordinary borrowing?
- The audited pool included a flash-loan route that required repayment, including its applicable premium, within the same transaction. That transaction-repaid route differed from ordinary collateral-backed borrowing, whose debt could remain outstanding and accrue interest. This historical capability did not establish current availability during shutdown.
-
Did MasterChef emergency withdrawal also claim staking rewards?
- MasterChef's emergency-withdrawal path returned deposited tokens without claiming rewards. Its ordinary deposit and withdrawal paths triggered reward claims, while pending rewards were minted only when claimed. This was a staking-pool feature, separate from withdrawing collateral through the LendingPool.