project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

LAN

A hybrid central limit orderbook for lending, with a focus on composability, UX, and modularity.

LAN

Created At

ETHOnline 2022

Winner of

trophy

🥉 Yearn — Best Use

trophy

🏊‍♂️ Connext — Pool Prize

Project Description

LAN is a dated lending orderbook, which heavily leans into the composability with on chain liquidity pools, providing base layer infrastructure for which existing forms of lending to be replicated, and new forms of lending to take shape.

At a high level, the protocol works by structuring loans as limit orders with a fixed time in force*, 1 week, 1 month, etc.

*For assets with more liquid markets, an oracle can be referred to, creating premature liquidations after an LTV is breached.

Suppose Jadid has several NFTs that he wants to take leverage on.

If there is an existing pool configured, Jadid is able to receive 10 USDC at an APY of 10% of instant liquidity for his NFTs for a fixed duration.

The bid accrues value until maturity, such that if the loan defaults, the pool acquires Jadid’s NFTs at nominal price of 10.XX USDC.

If there is a better order, improving on either price or APR, the bid is taken and Jadid has received better terms on his NFTs.

If there isn’t a pool configured, the auction becomes an RFQ for liquidity providers, and the same process of price improvement/refinancing is observed here.

How it's Made

The core contract (mainliquidations) stores auction data in a struct, creating gas savings.

BaseBidding is an abstract contract which specifies basic pool information that each pool should implement, allowing for either replication or innovation

BaseBid1 is a rough replica of Compound V3. It's single borrowable asset, has a utilization curve with a kink, and has whitelisted collateral, and implements OZ's ERC4626 for greater interoperability with DeFi. Unlike Compound, it swaps idle funds into Yearn to earn additional yield.

BaseBid2 doesn't allow external depositors, and is only focused on providing loans to whitelisted assets.

A special Art Gobblers focused implementation of basebid implements a VRGDA for selling vault tokens, and deposits idle funds into Aave instead.

IPriceOracle is a standardized oracle interface for contracts to interact with. Adapters for Chainlink and Tellor oracles were made.

Wrapper is a simple NFT Bundler for ERC20s to allow for compatibility with the smart contracts. The URI is stored on IPFS.

We deployed our contracts to the mainnets/testnets of Cronos, Polygon, Skale, Optimism, Oasis and, Aurora.

Finally, we successfully tried the x-call over NXTP, and added calldata to allow for crosschain use of the wrapper contract.

background image mobile

Join the mailing list

Get the latest news and updates