InstaFlashInterface
flashLoan
function flashLoan(address[] tokens, uint256[] amts, uint256 route, bytes data, bytes extraData) external
InstaFlashReceiverInterface
executeOperation
function executeOperation(address[] assets, uint256[] amounts, uint256[] premiums, address initiator, bytes _data) external returns (bool)
VaultT1Liquidator
ETH_ADDRESS
address ETH_ADDRESS
FLA
contract InstaFlashInterface FLA
WETH
contract IWETH9 WETH
rebalancer
mapping(address => bool) rebalancer
FluidVaultT1Liquidator__InvalidOperation
error FluidVaultT1Liquidator__InvalidOperation()
Liquidated
event Liquidated(address vault, uint256 collateral, uint256 debt)
Withdraw
event Withdraw(address to, address token, uint256 amount)
ToggleRebalancer
event ToggleRebalancer(address rebalancer, bool status)
LiquidationParams
struct LiquidationParams {
address vault;
address supply;
address borrow;
uint256 supplyAmount;
uint256 borrowAmount;
uint256 colPerUnitDebt;
bool absorb;
address swapRouter;
address swapApproval;
bytes swapData;
uint256 route;
}
constructor
constructor(address owner_, address fla_, address weth_, address[] rebalancers_) public
isRebalancer
modifier isRebalancer()
toggleRebalancer
function toggleRebalancer(address rebalancer_, bool status_) public
spell
function spell(address[] targets_, bytes[] calldatas_) public
withdraw
function withdraw(address to_, address[] tokens_, uint256[] amounts_) public
liquidation
function liquidation(struct VaultT1Liquidator.LiquidationParams params_) public
executeOperation
function executeOperation(address[] assets, uint256[] amounts, uint256[] premiums, address initiator, bytes _data) external returns (bool)
receive
receive() external payable
Table of Contents