# Peer-to-Peer Pool

## Pool Mechanism

The Peer-to-Peer Pool is built on the ordinary lending pool. When the user supplies assets in the Peer-to-Peer pool, the funds will be deposited into the ordinary lending pool through the Peer-to-Peer pool and enjoy the APR in the ordinary lending pool. It means that the supplier can enjoy the supply APR of the ordinary lending pool if not paired.

When a borrower participates in the Peer-to-Peer pool, the assets supplied by the suppliers into the ordinary lending pool through the Peer-to-Peer pool will be withdrawn and paired with the borrowing assets. At this time, since the capital utilization rate of both sides is 100%, the supplier and the borrower can enjoy more favorable interest rates. Suppliers will get higher interest rates and borrowers will get lower loan interest rates.

Currently, the ordinary lending pool is Compound V2 (https://v2-app.compound.finance/)

## Incentives in the Peer-to-Peer Pool

First, the incentives for one asset will be allocated to Supply, Borrow with below ratios:

PoolRatio

Supply Pool

50%

Borrow Pool

50%

Next, All Assets will share WING equally.

Let's go through an example：

Say the WING distribution rate of the NFT Pool is 103.68 WING/day, and there are 5 assets in the pool with the asset values listed below:

AssetsSupplyBorrow

USDT

\$500

\$100

USDC

\$200

\$500

WETH

\$100

\$100

COMP

\$200

\$200

DAI

\$300

\$100

We calculate the WING distribution obtained by each asset Supply, Borrow are as follows:

AssetsSupply WING distribution Amount per dayBorrow WING distribution Amount per day

USDT

103.68/5/2= 10.368

103.68/5/2= 10.368

USDC

103.68/5/2= 10.368

103.68/5/2= 10.368

WETH

103.68/5/2= 10.368

103.68/5/2= 10.368

COMP

103.68/5/2= 10.368

103.68/5/2= 10.368

DAI

103.68/5/2= 10.368

103.68/5/2= 10.368

### Incentives for a Wallet Address

Last, say a user supplied WETH worth \$100 and borrowed USDC worth \$100. Based on the process above, the WING incentives this user earned on the day is: \$100/\$100*10.368+\$100/\$200*10.368=15.552 WING

## Supply and Borrow

（1）Supply The asset supplied by the user in the Peer-to-Peer pool will be deposited in the ordinary lending pool to enjoy the interests. But when a user borrows that asset, which means that a Peer-to-Peer pairing is formed /the asset is paired, the supply asset will be withdrawn to the Peer-to-Peer pool. Then the Supply APR of the suppliers increases.

（2）Borrow Borrowers need to collateralize assets for borrowing. When a borrower enters the Peer-to-Peer pool to borrow some asset, the borrowed asset will be paired with the same supply asset. After paired, the borrower will enjoy the Peer-to-Peer borrow interest rate.

## Token Incentives

It should be noted that when the borrower and the supplier complete the loan at the Peer-to-Peer layer, there is no lending exposure at the ordinary lending pool layer, so they cannot obtain token distribution incentives. Therefore, for both borrowers and suppliers, when the reward from ordinary pool is higher than that of Peer-to-Peer pool, Peer-to-Peer lending mechanism will not be used for matching.

When the user's funds are in the ordinary lending pool, there are only COMP incentives. When the user's funds complete the Peer-to-Peer match, there are only pWING incentives.

## Rate and Interest

Peer-to-Peer Lending APR= a*Borrow APR +(1-a)*Supply APR

“a” is a set constant in the range [0,1]

Supply APR: The Supply APR of the token corresponding to the common lending pool

Borrow APR: The Borrow APR of the token corresponding to the common lending pool

By setting the value of “a”, we can adjust the degree of attraction of the Peer-to-Peer pool to the Suppliers and the Borrowers in the underlying pool.

“a” actually represents the proportion of benefits obtained by both borrowers and lenders. In the initial stage, “a” can be set as 50%, which can be dynamically adjusted later according to market conditions. For example, the value of “a” can be increased to attract suppliers, so as to reduce the risk of contract liquidation.

Now a=50%.

Example: If the supply APY of one asset in ordinary pool is 2%, and the borrow APY of one asset in ordinary pool is 4%.

then P2P Borrow APY=P2P Supply APY=2%*50%+4%*50%=3%

## Liquidation and Auction

Peer-to-Peer Pool does not have a front-end liquidation market, so liquidators need to liquidate at the contract level once the borrow limit is up to 100%. The liquidator can liquidate up to 90% of the collateral in a single liquidation, and the minimum liquidation is 5%.

Wing team has developed an automatic liquidation robot. If the borrower's Borrow Limit exceeds 100%, it will be liquidated by the liquidation robot in time.

Last updated