Tellerv2 connects borrowers and lenders through time-based loan markets
Tellerv2 connects borrowers and lenders through on-chain loan markets with agreed repayment schedules. Borrowers can propose custom loan terms or accept a lender's existing commitment. Market owners define participation requirements and payment rules, while lenders decide where to commit capital. The protocol supports unsecured lending arrangements as well as collateral-backed loans. In its collateral-backed V2 model, missed repayment can lead to default and loss of collateral, while a price decline alone does not trigger liquidation.
Loan requests and commitments start from different sides
Borrower-submitted requests
A borrower can request a particular lending token, principal amount, duration and interest rate within a chosen market. The core
TellerV2
contract records the bid so that a lender can review it. Funding occurs when a lender accepts the request, subject to that market's rules.
This path accommodates custom terms and any borrower information that the market requires. Lenders select requests using their own criteria.
Lender-created commitments
A commitment publishes the lender's willingness to provide capital under specified conditions. Its parameters can include the principal token, capital limit, expiry, maximum duration, minimum rate and collateral requirements. An eligible borrower can accept qualifying terms without waiting for a fresh manual lender review. The commitment remains tied to its market and available funding.
The lending-offer API route requires token approvals and market permissions before acceptance. The lender approves principal tokens for
TellerV2
, while the borrower approves applicable collateral for
CollateralManager
. Both participants authorize the forwarder within the market, and the market owner must also trust it.
Market owners set access and payment rules
Each market supplies the rules that individual loans inherit, including payment timing, default timing and optional participation checks.
Access and borrower information
Market owners can require lender attestations, borrower attestations or both. Those settings determine whether verification is necessary before participants can interact with that market. Borrower metadata can carry off-chain information relevant to a loan, including credit or identity information when required. The protocol does not impose one credit assessment across every market. An owner's decision to admit a participant remains separate from a lender's decision to fund that participant's request.
Payment cycles and pending requests
The
MarketRegistry
configuration includes a payment-cycle duration, a non-payment default period and a pending-bid expiry. These settings govern different states. A pending bid can expire before a lender accepts it. An active loan instead follows its repayment schedule and applicable default window. The V2 Submit Loan Request guide specifies a duration longer than one market payment cycle. The lending-offer API describes a one-cycle minimum.
A market can also set a fee. That configuration belongs to the particular market, so the protocol name alone does not establish a universal charge or payment schedule.
Unsecured requests and collateral-backed loans retain different terms
Unsecured lending is part of the protocol's open lending-book design, while collateral-backed V2 loans add assets held in escrow. These arrangements carry different lender requirements. Support for unsecured lending does not promise every borrower access to credit without collateral. The commitment data model includes a no-collateral option alongside supported collateral types. Whether such a loan is available follows the selected market, lender terms and willingness to fund it.
The collateral-backed request path separates proposals from debt
A collateral-backed request becomes an active loan when a lender accepts it under the applicable market rules. Before acceptance, the submitted terms remain a proposal. The escrow transfer links the pledged assets to the funded debt.
| Stage | Loan activity | Condition affecting the outcome |
|---|---|---|
| Market selection | The borrower selects a lending market. | Its access and payment settings apply. |
| Bid submission | The borrower submits requested loan terms. | The request remains unfunded until acceptance. |
| Lender acceptance | The loan receives funding and specified collateral enters escrow. | Required assets and permissions must allow execution. |
| Active repayment | The borrower pays under the agreed schedule. | Missed payments can reach default after the applicable grace period. |
| Loan resolution | Full repayment or default determines settlement rights. | Full repayment permits borrower withdrawal; default or liquidation changes the entitled recipient. |
| Accepting an existing commitment can combine bid creation and acceptance, provided its terms and required authorizations are satisfied. | ||
Collateral withdrawal follows the loan's state
In collateral-backed V2 loans, the specified assets enter collateral escrow when the loan is accepted. Collateral stays associated with that loan until its outcome permits withdrawal.
After full repayment
Repaying the debt in full makes the borrower eligible to withdraw the collateral. A timely minimum payment keeps the loan on schedule. In the final payment cycle, that minimum includes all outstanding principal and interest and can settle the debt in full.
After default or liquidation
Missed regular payments can place a loan in default after the applicable grace period. In the repository's TellerV2 code version 10, the lender can close a defaulted loan and receive its collateral or designate another recipient. Public liquidation becomes eligible after an additional 24-hour lender priority period; it repays the outstanding debt and transfers collateral to the liquidator or its designated recipient. The recipient follows the loan's state, so collateral does not always return to the original borrower.
Can a falling collateral price trigger liquidation?
A falling collateral price alone does not trigger liquidation of an active V2 loan. The loan's payment obligations and default window govern that outcome. Collateral valuation when a new loan is priced serves a different function from liquidation during its term. Pool and offer pricing can use an oracle without creating a price-triggered default rule for an existing loan. Lenders still face changes in collateral value if repayment fails.
Scheduled payments keep an active loan in good standing
An active loan's payment cycle determines when the borrower must cover the minimum amount due. The V2 repayment methods support minimum payments, full settlement and a custom payment amount. These operations serve different purposes: a scheduled payment meets the current requirement, while full settlement covers outstanding principal and interest. A custom payment below the calculated minimum due reverts.
Loan repayment and refinancing also produce different debt positions. Repayment reduces or settles the existing obligation. Refinancing replaces that obligation with a new loan under available terms. A borrower deciding between them needs the amount owed and timing of the existing loan, together with any replacement offer. A request for new funding leaves the existing debt in place until refinancing succeeds.
Extensions require a funded replacement loan
Additional time through a rollover depends on liquidity for a suitable replacement loan. The December 12, 2023 getting-started guide describes an Aave-based rollover that repays the original debt and opens a replacement in one transaction. Repeating that process requires suitable liquidity each time. The ability to repeat an extension does not reserve future funding or remove the original repayment obligation.
The pool-targeted API rollover uses a flash swap for an active loan. Its preview distinguishes principal owed, interest owed, origination fees, flash fees and any principal reduction. The required make-up payment and replacement terms determine the cost of obtaining another term.
Individual loans and lender pools allocate capital differently
Lenders can supply capital to individual loans or participate through lender pools. A standing commitment keeps principal in the lender's wallet until an eligible borrower draws on it. Its usable funding depends on the lender's live token balance and allowance. An offer can remain recorded even when that wallet cannot fund its stated allocation.
In the lender-group pool model, lenders supply principal and receive shares. Interest accrues to those shares as borrowers use the pool's capital. Its selected collateral, principal token and configured terms determine the lending exposure. A pool allocation follows shared terms, unlike selecting and funding one borrower request directly.
Asset standards and networks define the available market
V2 collateral interfaces include ERC20, ERC721 and ERC1155. That support describes how contracts handle assets; an offer still specifies the collateral that it accepts. Borrowed capital and collateral can use different tokens. A supported standard does not establish a funded market for every compatible asset.
V2 deployment environments include Ethereum mainnet, Arbitrum One, Polygon, Base and Mantle. Markets operate within the selected network's contract environment. A token's network and contract address identify the asset that the loan uses. Matching a familiar token symbol alone does not identify that contract or establish another network's lending terms.
Borrowed assets can support other DeFi activity
Borrowers can hold, sell or deploy the borrowed asset in another DeFi position during the agreed term. Locking collateral supplies the backing for a secured loan; it does not dictate how every borrowed token must be used. These uses rely on obtaining funding under the relevant market's terms. Repayment remains denominated in the borrowed asset, even if its value changes against the collateral.
Moving borrowed assets into another position leaves the repayment schedule in place. Any access restrictions in that separate position matter when payments become due. Committing those tokens elsewhere therefore requires deciding how the owed asset will be available for the next scheduled payment.
Your questions, answered
When does an unfunded loan request expire?
A pending V2 bid expires once the time since submission exceeds its nonzero bidExpirationTime value in seconds. A zero value disables expiry. After expiry, a lender can no longer accept the request. This timer applies to the unfunded proposal. An accepted loan follows its own payment schedule and default rules, so a pending-bid expiry is not the maturity date of an active debt.
Is it possible to cancel a loan request before acceptance?
A borrower can cancel an unaccepted V2 bid before its expiry using cancelBid() with the bid's identifier. Canceling applies to the pending request. Repayment and refinancing operate on loans that have already been accepted, so canceling a proposal does not settle an active loan.
Where does an accepted loan send its borrowed tokens?
A nonzero receiver address supplied with a V2 loan request receives the proceeds when a lender accepts. If that input is the zero address, TellerV2 uses the borrower as the receiver. It should not be inferred solely from the borrower address or the wallet displaying the request.
What units does a lender commitment use for its capital limit?
The maxPrincipal field uses the principal token's base units. The token's decimal precision determines how that integer translates into a displayed amount. Reading the raw integer as whole tokens would misstate the commitment's size. The configured limit also remains distinct from the lender's currently fundable balance and allowance.
Can an NFT-backed commitment accept any token ID?
A V2 commitment can require a specific token ID or permit any ID, depending on its configured collateral type. The ERC721_ANY_ID and ERC1155_ANY_ID variants ignore the token-ID field. Their specified collateral contract still applies, so accepting any ID does not mean accepting an NFT from any collection.
Who may trigger a defaulted loan's collateral withdrawal?
In the repository's TellerV2 code version 10, only the lender can close a defaulted loan to claim collateral for itself or a designated recipient. CollateralManager.withdraw() accepts only fully repaid loans. The V2 Claim Collateral guide's any-account default-withdrawal description does not apply to this implementation. A liquidated loan has a separate collateral entitlement for the liquidator.
Does closing a market prevent new loan requests?
A market owner can call closeMarket() on MarketRegistry to prevent new bids from being added to that market.
Updated: