Skip to content

InstaFlashInterface ​

flashLoan ​

solidity
function flashLoan(address[] tokens, uint256[] amts, uint256 route, bytes data, bytes extraData) external

InstaFlashReceiverInterface ​

executeOperation ​

solidity
function executeOperation(address[] assets, uint256[] amounts, uint256[] premiums, address initiator, bytes _data) external returns (bool)

VaultT1Migrator ​

X32 ​

solidity
uint256 X32

ETH_ADDRESS ​

solidity
address ETH_ADDRESS

VAULT_T1_FACTORY_OLD ​

solidity
contract IFluidVaultFactory VAULT_T1_FACTORY_OLD

VAULT_T1_FACTORY_NEW ​

solidity
contract IFluidVaultFactory VAULT_T1_FACTORY_NEW

FLA ​

solidity
contract InstaFlashInterface FLA

WETH ​

solidity
contract IWETH9 WETH

FlashloanConfig ​

solidity
struct FlashloanConfig {
  uint256 amount;
  uint256 route;
}

flashloanConfig ​

solidity
mapping(address => struct VaultT1Migrator.FlashloanConfig) flashloanConfig

FluidVaultT1Migrator__InvalidOperation ​

solidity
error FluidVaultT1Migrator__InvalidOperation()

FluidVaultT1Migrator__NotAllowed ​

solidity
error FluidVaultT1Migrator__NotAllowed()

Migrated ​

solidity
event Migrated(uint256 vaultId, address owner, uint256 nft, uint256 collateral, uint256 debt)

Withdraw ​

solidity
event Withdraw(address to, address token, uint256 amount)

SetFlashloanConfig ​

solidity
event SetFlashloanConfig(address token, uint256 route, uint256 amount)

constructor ​

solidity
constructor(address owner_, address fla_, address weth_, address oldFactory_, address newFactory_) public

setFlashloanConfig ​

solidity
function setFlashloanConfig(address token_, uint256 route_, uint256 amount_) public

spell ​

solidity
function spell(address[] targets_, bytes[] calldatas_) public

withdraw ​

solidity
function withdraw(address to_, address[] tokens_, uint256[] amounts_) public

MigratorParams ​

solidity
struct MigratorParams {
  uint256 nftId;
  address owner;
  address supply;
  address borrow;
  uint256 vaultId;
  address vaultFrom;
  address vaultTo;
  uint256 supplyAmount;
  uint256 borrowAmount;
  int256 withdrawAmount;
  int256 paybackAmount;
  uint256 route;
}

onERC721Received ​

solidity
function onERC721Received(address operator, address from, uint256 tokenId, bytes data) external returns (bytes4)

executeOperation ​

solidity
function executeOperation(address[] assets, uint256[] amounts, uint256[] premiums, address initiator, bytes _data) external returns (bool)

vaultByNftId ​

solidity
function vaultByNftId(uint256 nftId_) public view returns (uint256 vaultId_, address vault_)

vaultConfig ​

solidity
function vaultConfig(address vault_) public view returns (address supply_, address borrow_)

calculateStorageSlotUintMapping ​

solidity
function calculateStorageSlotUintMapping(uint256 slot_, uint256 key_) public pure returns (bytes32)

getVaultAddress ​

solidity
function getVaultAddress(address vaultFactory_, uint256 vaultId_) public pure returns (address vault_)

receive ​

solidity
receive() external payable