The full source code for the Vaultera v3 Protocol contracts lives on the repo. Contract addresses can be pulled in as a Solidity or JavaScript package using the Vaultera Address Book.
The core contracts are grouped into the following categories within the repository:
Pool
Configuration
Logic
Tokenization
Helpers
Misc
Pool
Pool
The Pool is the primary entry point into the Vaultera Protocol. Nearly all user interactions with the Vaultera Protocol flow Pool contract. Pool is managed by the PoolAddressesProvider of the given market. All admin functions can be called by the PoolConfigurator contract, and it lives within PoolAddressesProvider.
L2Pool
The L2Pool is an adaptation of the Pool contract designed for L2 rollups, offering gas-optimized user methods that accept byte encoded input arguments. It serves as a calldata optimized extension of the Pool contract, letting users submit compact calldata representations that lower transaction costs on rollups.
PoolConfigurator
The PoolConfigurator exposes configuration methods for the Pool contract. Its write methods may be invoked exclusively by addresses that hold the matching permissioned system roles, all of which are governed by ACLManager.
Configuration
ACLManager
The ACLManager contract acts as the central registry of system roles and permissions.
PoolAddressesProvider
The PoolAddressesProvider serves as a registry of the protocol's core components, such as the ACLManager and Pool contracts, and it can update address pointers or swap out the implementation behind proxy contracts.
Logic
Libraries that hold the base logic for a wide range of actions and functions.
Tokenization
AToken
ATokens are yield-generating tokens that are minted when assets are supplied and burnt when they are withdrawn from the Pool.
VariableDebtToken
VariableDebtTokens are non-transferable, interest-accruing tokens that represent positions borrowed at a variable rate.
Helpers
L2Encoder
The L2Encoder is a helper contract that encodes the calldata forwarded to the L2Pool. This encoding trims calldata size across L2Pool to keep transaction costs low. Its only role is to assemble calldata payloads for users and frontends.
VaultProtocolDataProvider
The VaultProtocolDataProvider is a helper contract that gathers and normalizes data pulled from the Pool.
Other
VaultOracle
The VaultOracle is the registry of reserve oracles that fetches asset prices and manages price feeds.
DefaultReserveInterestRateStrategy
The DefaultReserveInterestRateStrategy defines how borrow and supply interest rates are derived from the current reserve state. It stores every parameter required to compute and refresh the yield accruing to each individual liquidity pool on the protocol.
PriceOracleSentinel
The PriceOracleSentinel checks whether user operations may proceed based on the PriceOracle uptime. Once the PriceOracle comes back online after an outage or downtime, users get a grace period to restore their positions.