Skip to content

Instantly share code, notes, and snippets.

View DeFiNiek's full-sized avatar

Niek DeFiNiek

  • Noord-Holland, The Netherlands
View GitHub Profile
@DeFiNiek
DeFiNiek / IBentoboxStrategyFlat.sol
Created April 4, 2023 15:15
Flattened interfaces for bentobox to build a strategy
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.19;
/// @notice Minimal interface for BentoBox token vault interactions - `token` is aliased as `address` from `IERC20` for code simplicity.
interface IBentoBoxMinimal {
struct Rebase {
uint128 elastic;
uint128 base;
}
@DeFiNiek
DeFiNiek / IAaveV3Flat.sol
Created April 4, 2023 15:03
Flattend interface of the Aave V3 Protocol, used for flashloans.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IPool {
/**
* @dev Emitted on mintUnbacked()
* @param reserve The address of the underlying asset of the reserve
* @param user The address initiating the supply
* @param onBehalfOf The beneficiary of the supplied assets, receiving the aTokens
* @param amount The amount of supplied assets