Smart Contracts
Explore the top verified smart contracts on Ethereum by transaction volume to help you build your dapps.

Browse Popular Projects
Browse By Category
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
DEFAULT Results filtered by descending transaction volume
ACLManager
The following smart contract is an Access Control List (ACL) manager that defines roles and permissions for different users in a decentralized application. It imports the AccessControl contract from OpenZeppelin and implements the IACLManager interface. The contract defines several roles such as POOL_ADMIN, EMERGENCY_ADMIN, RISK_ADMIN, FLASH_BORROWER, BRIDGE, and ASSET_LISTING_ADMIN, and provides functions to add or remove users from these roles. The contract also sets up an ACL admin and allows the admin to set the role admin for each role.
PoolAddressesProviderRegistry
The following smart contract is a registry for addresses providers used in a pool. It allows registering and unregistering addresses providers, and provides functions to retrieve the list of registered providers and their IDs. The contract is owned by an address that can only be set during deployment. The contract uses OpenZeppelin's Ownable contract and an external interface IPoolAddressesProviderRegistry.
AaveProtocolDataProvider
The following smart contract, AaveProtocolDataProvider, is an implementation of the IPoolDataProvider interface. It provides data on Aave protocol reserves, including reserve tokens, aTokens, configuration data, reserve data, user reserve data, and more. It uses various libraries and interfaces, including ReserveConfiguration, UserConfiguration, DataTypes, WadRayMath, IPoolAddressesProvider, IStableDebtToken, IVariableDebtToken, IPool, and IERC20Detailed. The contract is designed to be used by other contracts or applications that require access to Aave protocol data.
UiIncentiveDataProviderV3
The following smart contract, `UiIncentiveDataProviderV3`, provides functions to retrieve incentive data for Aave protocol reserves and user reserves. It uses other contracts and interfaces to fetch data related to rewards, tokens, and prices. The contract returns aggregated and user-specific data for Aave protocol reserves.
UiPoolDataProviderV3
The following smart contract is the UiPoolDataProviderV3 contract, which provides data on Aave protocol reserves and user data. It uses various interfaces and libraries to retrieve and aggregate data on reserves, including interest rate strategies, debt tokens, and collateral usage. It also retrieves data on the market reference currency and network base token prices. The contract is designed to be used by front-end applications to display information to users.
WrappedTokenGatewayV3
The following smart contract is the WrappedTokenGatewayV3 contract, which allows users to deposit, withdraw, repay, and borrow ETH using Aave's lending protocol. It uses the WETH token as a wrapper for ETH and interacts with Aave's IPool contract to execute these actions. The contract also includes functions for emergency token and ether transfers and returns the WETH address.
WalletBalanceProvider
The following smart contract, `WalletBalanceProvider`, is used to retrieve the wallet balances of a user for a given set of tokens. It uses the Aave protocol's `IPool` and `IPoolAddressesProvider` interfaces to get the list of reserves and their configurations. The contract also includes a `batchBalanceOf` function to retrieve balances for multiple users and tokens at once. The contract supports both ERC20 tokens and ETH, which is represented by a mock ETH address.
AaveOracle
The following smart contract is an implementation of the IAaveOracle interface. It provides a way to get the price of assets by using Chainlink or fallback oracle. It also allows asset listing or pool admins to set the sources of assets and fallback oracle. The contract is initialized with a base currency and its unit. The contract is designed to be used in the Aave protocol.
AaveEcosystemReserveController
The following smart contract is the AaveEcosystemReserveController, which is used to manage the reserve funds of the Aave protocol. It allows the owner to approve, transfer, create, withdraw, and cancel streams of ERC20 tokens from the reserve. The contract inherits from Ownable and IAaveEcosystemReserveController interfaces. The constructor sets the owner to the Aave governance short timelock contract.
ParaSwapLiquiditySwapAdapter
The following smart contract is a Solidity implementation of a ParaSwap liquidity swap adapter. It allows users to swap liquidity between two assets using ParaSwap's Augustus aggregator. The contract uses Aave's flash loan feature to provide liquidity for the swap and also supports permit signatures for ERC20 tokens. The contract is non-reentrant and uses SafeMath for arithmetic operations.
ParaSwapRepayAdapter
The following smart contract is a Solidity implementation of a ParaSwapRepayAdapter, which allows users to repay their debts on Aave using ParaSwap. The contract uses the BaseParaSwapBuyAdapter as a base and implements the executeOperation and swapAndRepay functions. The contract also includes a getDebtRepayAmount function to calculate the amount of debt to be repaid. The contract is designed to be non-reentrant and uses SafeMath for arithmetic operations.
MigrationHelperMainnet
The following smart contract is a MigrationHelperMainnet contract that facilitates the migration of assets from Aave V2 to Aave V3. It uses the Aave V2 and V3 Ethereum address books and the WstETH and IERC20WithPermit interfaces. The contract converts STETH to WstETH and approves the necessary tokens for the migration. It also provides functions to get the migration supply and pre-supply.
DefaultReserveInterestRateStrategy
The following smart contract is a Solidity implementation of the DefaultReserveInterestRateStrategy contract, which is used to calculate the interest rates for a lending pool. It uses various parameters such as optimal usage ratio, stable to total debt ratio, and slopes to determine the interest rates for stable and variable borrow rates. The contract also includes functions to retrieve the various parameters used in the interest rate calculations.
DefaultReserveInterestRateStrategy
The following smart contract, `DefaultReserveInterestRateStrategy`, is an implementation of the `IDefaultInterestRateStrategy` interface. It calculates the interest rates for a reserve based on various parameters such as the total debt, available liquidity, and usage ratios. The contract also includes functions to retrieve the various slope and offset values used in the interest rate calculations.
DefaultReserveInterestRateStrategy
The following smart contract, DefaultReserveInterestRateStrategy, is an implementation of the IDefaultInterestRateStrategy interface. It calculates the interest rates for a reserve based on the current state of the reserve and the utilization rates of the reserve. The contract uses various parameters to calculate the interest rates, including the optimal usage ratio, the optimal stable to total debt ratio, and the maximum excess usage and stable to total debt ratios. The contract also includes functions to retrieve the various parameters used in the interest rate calculation.
DefaultReserveInterestRateStrategy
The following smart contract is the implementation of the default interest rate strategy for a lending protocol. It calculates the interest rates for stable and variable borrow rates based on the available liquidity, total debt, and usage ratios. The contract also defines optimal usage and stable-to-total-debt ratios, and sets the base rates and slopes for the interest rate curves. The purpose of this contract is to provide a standardized interest rate strategy for the lending protocol.
DefaultReserveInterestRateStrategy
The following smart contract is the implementation of the default interest rate strategy for Aave protocol. It calculates the interest rates for stable and variable borrow rates based on the available liquidity, total debt, and usage ratios. The contract also defines the optimal usage ratio, optimal stable to total debt ratio, and maximum excess usage and stable to total debt ratios. The contract uses various slope and offset parameters to calculate the interest rates.
Start building on Alchemy
Get Started for Free
Browse smart contracts from other popular projects
Build blockchain magic with Alchemy
Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.
