# Borrow

Once users deposit tokens as collateral, they can borrow other tokens up to a certain limit. This borrowing capacity is capped, and the maximum amount a user can borrow is determined by the following formula:

<figure><img src="https://1188700695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5rpVHp63h8paUvfzVp7e%2Fuploads%2FPYGkkf0rAmpiwHDAcfCZ%2Fimage.png?alt=media&#x26;token=6f1fbb2c-494d-45a9-bdac-bbad7e07420b" alt=""><figcaption></figcaption></figure>

The borrowing limit is calculated by multiplying the deposited token values by their respective collateral factors and summing the results.

Collateral factors, ranging from 0 to 0.9, are assigned based on the token's price volatility and liquidity. The collateral value is calculated using the Time-Weighted Average Price (TWAP) from exchanges.

Additionally, each token has a specified borrow cap, which is the maximum allowable borrowing amount for that particular token. These caps help maintain a controlled borrowing environment, mitigate risk, and ensure protocol stability. The borrow cap for each asset may vary due to factors such as price volatility, liquidity, or governance decisions.
