Extrafinance lending: From Deposits to Withdrawals

Updated ·

Extrafinance lending turns a deposit of a supported asset into eTokens representing your share of that asset's lending pool. Authorized farming vaults borrow the pool's liquidity, and borrowing interest contributes to the value of its shares. The lending position records a supply claim, without creating a personal loan. eTokens can also sit in a rewards staking contract, so a wallet balance alone may not show the whole position. Redeeming the claim requires enough available liquidity to return the underlying asset.

Supplied Assets and Farming Collateral

Supplying a lending asset funds the pool farming vaults use for credit, while the depositor's account records pool shares without a borrowing obligation. Collateral, leverage, and debt ratios belong to the farm drawing on that liquidity. The lender does not select the farmer's asset pair or borrowing strategy when making an ordinary deposit. Only whitelisted vault contracts can access borrowing and repayment functions. Their borrowing credit limits access to the pool; that credit does not create a personal credit line for everyone holding eTokens.


What Does an eToken Balance Represent?

An eToken balance represents a share of a specific asset's lending pool. The pool's exchange rate converts shares into units of the underlying asset. The number of eTokens a deposit creates depends on that conversion, so deposited asset units and received share units need not match. Interest accounting can increase the underlying claim without adding eTokens to the depositor's balance. The lending contract calls each asset-specific pool a reserve.

Position accounting includes both staked and unstaked eTokens when calculating the account's underlying claim. Staked shares sit in the associated rewards contract; unstaked shares remain in the account's wallet. The reserve identifier selects the underlying asset, eToken contract, and staking contract for that pool. The account's position must refer to those matching contracts, since a share from another reserve represents a different underlying claim.

Pool Parameters and Deposit Conditions

Deposit eligibility follows the selected reserve's asset and operating state, together with the capacity available for additional supply. Check the reserve's configured token before wallet authorization. The core deposit functions can wrap native ETH for the configured wrapped ETH (WETH) reserve when enough ETH accompanies the deposit. An interface may expose fewer funding choices. For pools on Optimism or Base, the wallet's network must also match the intended pool. An asset balance on another network does not fund that reserve.

Pool Parameters and Deposit Conditions
Pool Parameter Meaning and Required Condition
Underlying asset The reserve's configured token; for its WETH reserve, the core deposit route can wrap native ETH when enough accompanies the transaction.
Deposit status The reserve must be active and unfrozen, and the lending contract must be unpaused.
Reserve capacity Existing total pool liquidity plus the deposit must fit within the configured capacity.
Receipt asset The reserve's eTokens; their exchange rate determines the underlying pool claim.
Reward participation Staked eTokens qualify for configured rewards when the reward schedule is active.
Redemption coverage The underlying amount requested must not exceed the reserve's available liquidity.

Wallet Authorization and the Deposit Boundary

Token authorization gives the specified contract permission to spend an approved asset amount when the deposit requires an ERC-20 allowance. The deposit transaction supplies assets and creates the pool-share record. These operations have different effects even when an interface presents them together. Read the asset and spender in the authorization request before approving access. A successful allowance transaction establishes permission; it does not establish a completed lending deposit.

Extrafinance charges no lending deposit or withdrawal fee. Blockchain gas charges still apply to the on-chain transaction.

The processed deposit appears under Your Positions on the Lend screen. The core contract's deposit record identifies the reserve, sender, beneficiary, supplied amount, and minted eTokens. Those details distinguish the intended pool claim from an authorization or unrelated transfer. A transaction identifier alone does not establish successful execution. The account and network used to inspect the position must match the executed deposit, including its beneficiary when the supplying and receiving addresses differ.


How Does the Supplied Balance Earn Interest?

Borrower interest increases the pool's accounted assets, which can increase the underlying value represented by an existing eToken balance. Utilization measures borrowed liquidity divided by total pool liquidity, including available assets and outstanding borrowing. The pool applies its configured interest-rate curve to utilization. A higher borrowing rate does not pass through unchanged to every supplied unit, because only borrowed assets generate that interest. The reserve also allocates a configured share of accrued interest to the protocol treasury.

Annual percentage rate (APR) expresses an annualized rate without the compounding assumed in annual percentage yield (APY). A displayed lending APY is a rate estimate, not a record of tokens already earned. Borrowing demand and rate settings can change while assets remain supplied. Interest accrual also differs from cash availability. Outstanding borrowings form part of the accounted pool value while farmers still hold those assets, so an increase in the underlying claim need not produce an equal increase in immediately withdrawable liquidity.

Staked Shares and Separate Rewards

The combined deposit-and-stake route places newly minted eTokens in the reserve's StakingRewards contract and credits the beneficiary's staked balance. The shares still represent the same lending pool claim. Ordinary deposits can leave eTokens unstaked, while staking adds eligibility for configured external rewards. The combined route performs the asset deposit and eToken staking in one contract call, so the two accounting records need not correspond to two separate transactions.

Reward accrual depends on the reward contract's configured start and end times, funded reward amounts, and the account's staked share balance. A supported staking route does not establish that every pool currently pays an incentive. The reward schedule can end while the eToken claim continues to represent the lending deposit. Keep the supplied-asset claim and claimable reward tokens separate when interpreting a position's total value.

Can a Lending Withdrawal Fail Without a Lockup?

A lending withdrawal can fail despite having no default lockup. The lending interface supports both partial and full withdrawals. The lending contract rejects redemption when its underlying-asset amount exceeds the reserve's available liquidity. Borrowed assets contribute to the accounted pool value, but they cannot fund an immediate withdrawal while farmers still hold them. High utilization can delay access until repayment restores liquidity.

Extrafinance lending: Can a Lending Withdrawal Fail Without a Lockup?

View full-size image

Repayments or additional deposits can increase available liquidity. An earlier liquidity reading does not establish the pool balance when redemption executes.

The contract burns redeemed eTokens and returns the corresponding underlying assets to the recipient. For its configured WETH reserve, the core contract can instead unwrap WETH and send native ETH when redemption requests that output. The combined unstake-and-withdraw route releases staked shares and redeems them in one transaction. Confirm the successful transaction's redemption record and the asset return to its specified recipient before treating the withdrawal as complete. A liquidity failure reverts that transaction, including the attempted unstaking; it does not complete a partial payout. A retry needs enough liquidity for its requested amount. An elapsed waiting period alone does not satisfy that condition, even when the account continues to show a valid pool-share balance.

Rate Curves for Stablecoin and LST Pools

Stablecoin and liquid staking token (LST) pools can use the Pseudo-Fixed-Interest-Rate (PFIR) model to limit borrowing-rate variation below a utilization threshold. Above the threshold, the curve increases borrowing costs to encourage repayment or attract new deposits. That response supports lending liquidity through incentives; it does not create immediate repayment. The threshold and borrowing-rate parameters belong to the applicable pool configuration and can change. A comparatively stable borrowing rate also does not fix lending earnings, because utilization still determines how much supplied liquidity generates interest.


Bad Debt and Lending Pool Health

Bad debt arises when a farm's liquidation fails to recover the amount it owes to the lending pool. A lender holds a claim on that pool, so repayment shortfalls matter even though the lending deposit creates no personal borrowing obligation. Sharp price moves and inadequate liquidation liquidity can prevent timely recovery. Smart contract bugs can also affect the assets or accounting supporting eToken claims. A positive displayed rate does not establish that all outstanding debt will return as spendable assets.

The core lending contract lets its owner pause deposits and redemptions together. Its reserve-level controls can disable a pool or freeze new deposits. These controls make operational availability distinct from share ownership, even before cash-liquidity constraints enter the withdrawal calculation.

Everyday questions about Extrafinance lending

Do I Need EXTRA Tokens to Supply a Lending Pool?

An ordinary lending deposit does not require an EXTRA holding in the core lending implementation. The deposit uses the selected reserve's underlying asset and follows its operational and capacity checks. Token allowances and blockchain gas can impose separate transaction requirements. Holding a governance token does not replace the underlying asset the lending pool accepts.

When Does the Lending Contract Update Its Interest Accounting?

The lending contract updates reserve interest accounting during deposits, redemptions, borrowing, and repayments. Its valuation functions can also account for interest elapsed since the last stored update. This uses the reserve's borrowing rate and accounting timestamp. A wallet's share count can remain unchanged while its underlying claim changes.

Can I Supply Assets for Another Address?

The core deposit functions support a beneficiary address different from the account supplying the assets. The beneficiary receives the eTokens or the corresponding staked-share credit, depending on the deposit route. This capability belongs to the contract functions; an interface may expose fewer recipient choices. The resulting claim belongs to the credited beneficiary, which matters when locating the lending position.

Does a Lending Withdrawal Automatically Claim Staking Rewards?

The core unstake-and-withdraw function redeems the selected shares without automatically paying separate staking rewards. The rewards contract updates the account's reward accounting during unstaking, while its claim function handles reward transfers. An interface can combine actions differently, so the underlying-asset return and any reward payment need distinct confirmation. A reduction in staked shares alone does not prove reward tokens reached the wallet.

Is an eToken Balance a Dollar Balance?

An eToken balance counts pool shares, not dollars. The reserve's exchange rate converts those shares into units of its underlying asset. A dollar valuation also requires that asset's market price. Consequently, a position can represent more underlying tokens while its dollar value falls. Separate reward tokens have their own prices and do not change the unit represented by the lending shares.

How Does the Lending Contract Reject Very Small Deposits?

The core lending code rejects a deposit when its initially calculated eToken amount is 1 000 base units or fewer. The check uses token units, so decimals and the pool's exchange rate matter. If the reserve has no existing eToken supply, the contract also allocates 1 000 share base units to an inaccessible address. That bootstrap rule further reduces the eTokens credited to the first depositor.

Will Freezing a Lending Reserve Prevent Existing Withdrawals?

A reserve freeze blocks new deposits without itself disabling redemption in the core LendingPool implementation. Redemption still requires an active reserve, an unpaused lending contract, and sufficient available liquidity. Freezing a reserve therefore differs from deactivating it or pausing the contract. A frozen flag alone cannot establish whether a particular withdrawal will succeed.