Skip to content

Bend Contract Overview

This section describes the smart contracts powering the Bend protocol, providing guidance for developers wishing to interact with them programmatically or for those wishing to gain a deeper understanding of the contracts.

Below, we walk through the primary contracts and their purpose in Bend.

Pool

The Pool contract is the main user-facing contract of the protocol. Most users interactions with Bend will happen through this contract. Developers will mainly interact with the Pool contract through the following functions:

ATokens

ATokens represent the interest-bearing token that users receive when they deposit assets into Bend. ATokens are rebasing, meaning that the balance of ATokens increases over time as interest is accrued. ATokens are redeemable 1:1 with the underlying asset.

All standard ERC20 methods are implemented, such as transfer, approve, etc. Transfers are subject to health factor checks to ensure that the user's account is not at risk of liquidation (Health Factor < 1).

mint and burn functions are controlled by the Pool contract.

Debt Tokens

The VariableDebtToken tracks the HONEY borrowing positions of users at a variable interest rate.

Transfer and approve functionalities are disabled since debt positions are non-transferable