instadappVault

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstadappVaultABI = InstadappVaultMetaData.ABI

InstadappVaultABI is the input ABI used to generate the binding from. Deprecated: Use InstadappVaultMetaData.ABI instead.

View Source
var InstadappVaultMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"auth_\",\"type\":\"address\"}],\"name\":\"addDSAAuth\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"status_\",\"type\":\"uint256\"}],\"name\":\"changeStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"}],\"name\":\"collectRevenue\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amt_\",\"type\":\"uint256\"}],\"name\":\"deleverage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"deleverageAmt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"}],\"name\":\"deleverageAndWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deleverageFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentExchangePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"exchangePrice_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newRevenue_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"flashTkn_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"flashAmt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"route_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"stEthAmt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"wethAmt_\",\"type\":\"uint256\"}],\"name\":\"importPosition\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isRebalancer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRevenueExchangePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amt_\",\"type\":\"uint256\"}],\"name\":\"leverage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ratios\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"maxLimit\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"minLimit\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"minLimitGap\",\"type\":\"uint16\"},{\"internalType\":\"uint128\",\"name\":\"maxBorrowRate\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"flashTkn_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"flashAmt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"route_\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"vaults_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amts_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"excessDebt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paybackDebt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAmountToSwap_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"extraWithdraw_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unitAmt_\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"oneInchData_\",\"type\":\"bytes\"}],\"name\":\"rebalanceOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"withdrawAmt_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"flashTkn_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"flashAmt_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"route_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAmountToSwap_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unitAmt_\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"oneInchData_\",\"type\":\"bytes\"}],\"name\":\"rebalanceTwo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revenue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revenueFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldata_\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"operation_\",\"type\":\"uint256\"}],\"name\":\"spell\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"}],\"name\":\"supply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"vtokenAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"}],\"name\":\"supplyEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"vtokenAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"swapFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"auth_\",\"type\":\"address\"}],\"name\":\"updateAuth\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"revenueFee_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalFee_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFee_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deleverageFee_\",\"type\":\"uint256\"}],\"name\":\"updateFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16[]\",\"name\":\"ratios_\",\"type\":\"uint16[]\"}],\"name\":\"updateRatios\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"rebalancer_\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isRebalancer_\",\"type\":\"bool\"}],\"name\":\"updateRebalancer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultDsa\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"vtokenAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"afterDeleverage_\",\"type\":\"bool\"}],\"name\":\"withdrawFinal\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"transferAmts_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

InstadappVaultMetaData contains all meta data concerning the InstadappVault contract.

Functions

This section is empty.

Types

type InstadappVault

type InstadappVault struct {
	InstadappVaultCaller     // Read-only binding to the contract
	InstadappVaultTransactor // Write-only binding to the contract
	InstadappVaultFilterer   // Log filterer for contract events
}

InstadappVault is an auto generated Go binding around an Ethereum contract.

func NewInstadappVault

func NewInstadappVault(address common.Address, backend bind.ContractBackend) (*InstadappVault, error)

NewInstadappVault creates a new instance of InstadappVault, bound to a specific deployed contract.

type InstadappVaultCaller

type InstadappVaultCaller struct {
	// contains filtered or unexported fields
}

InstadappVaultCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewInstadappVaultCaller

func NewInstadappVaultCaller(address common.Address, caller bind.ContractCaller) (*InstadappVaultCaller, error)

NewInstadappVaultCaller creates a new read-only instance of InstadappVault, bound to a specific deployed contract.

func (*InstadappVaultCaller) Allowance

func (_InstadappVault *InstadappVaultCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*InstadappVaultCaller) Auth

func (_InstadappVault *InstadappVaultCaller) Auth(opts *bind.CallOpts) (common.Address, error)

Auth is a free data retrieval call binding the contract method 0xde9375f2.

Solidity: function auth() view returns(address)

func (*InstadappVaultCaller) BalanceOf

func (_InstadappVault *InstadappVaultCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*InstadappVaultCaller) Decimals

func (_InstadappVault *InstadappVaultCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*InstadappVaultCaller) DeleverageFee

func (_InstadappVault *InstadappVaultCaller) DeleverageFee(opts *bind.CallOpts) (*big.Int, error)

DeleverageFee is a free data retrieval call binding the contract method 0xa4c6c1e0.

Solidity: function deleverageFee() view returns(uint256)

func (*InstadappVaultCaller) GetCurrentExchangePrice

func (_InstadappVault *InstadappVaultCaller) GetCurrentExchangePrice(opts *bind.CallOpts) (struct {
	ExchangePrice *big.Int
	NewRevenue    *big.Int
}, error)

GetCurrentExchangePrice is a free data retrieval call binding the contract method 0xcc4a0158.

Solidity: function getCurrentExchangePrice() view returns(uint256 exchangePrice_, uint256 newRevenue_)

func (*InstadappVaultCaller) IsRebalancer

func (_InstadappVault *InstadappVaultCaller) IsRebalancer(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsRebalancer is a free data retrieval call binding the contract method 0x467c9eff.

Solidity: function isRebalancer(address ) view returns(bool)

func (*InstadappVaultCaller) LastRevenueExchangePrice

func (_InstadappVault *InstadappVaultCaller) LastRevenueExchangePrice(opts *bind.CallOpts) (*big.Int, error)

LastRevenueExchangePrice is a free data retrieval call binding the contract method 0x0f9775d5.

Solidity: function lastRevenueExchangePrice() view returns(uint256)

func (*InstadappVaultCaller) Name

func (_InstadappVault *InstadappVaultCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() pure returns(string)

func (*InstadappVaultCaller) Ratios

func (_InstadappVault *InstadappVaultCaller) Ratios(opts *bind.CallOpts) (struct {
	MaxLimit      uint16
	MinLimit      uint16
	MinLimitGap   uint16
	MaxBorrowRate *big.Int
}, error)

Ratios is a free data retrieval call binding the contract method 0xcf6d625e.

Solidity: function ratios() view returns(uint16 maxLimit, uint16 minLimit, uint16 minLimitGap, uint128 maxBorrowRate)

func (*InstadappVaultCaller) Revenue

func (_InstadappVault *InstadappVaultCaller) Revenue(opts *bind.CallOpts) (*big.Int, error)

Revenue is a free data retrieval call binding the contract method 0x3e9491a2.

Solidity: function revenue() view returns(uint256)

func (*InstadappVaultCaller) RevenueFee

func (_InstadappVault *InstadappVaultCaller) RevenueFee(opts *bind.CallOpts) (*big.Int, error)

RevenueFee is a free data retrieval call binding the contract method 0x36e4ec64.

Solidity: function revenueFee() view returns(uint256)

func (*InstadappVaultCaller) SwapFee

func (_InstadappVault *InstadappVaultCaller) SwapFee(opts *bind.CallOpts) (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() view returns(uint256)

func (*InstadappVaultCaller) Symbol

func (_InstadappVault *InstadappVaultCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() pure returns(string)

func (*InstadappVaultCaller) TotalSupply

func (_InstadappVault *InstadappVaultCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*InstadappVaultCaller) VaultDsa

func (_InstadappVault *InstadappVaultCaller) VaultDsa(opts *bind.CallOpts) (common.Address, error)

VaultDsa is a free data retrieval call binding the contract method 0xdc935698.

Solidity: function vaultDsa() view returns(address)

func (*InstadappVaultCaller) WithdrawFinal

func (_InstadappVault *InstadappVaultCaller) WithdrawFinal(opts *bind.CallOpts, amount_ *big.Int, afterDeleverage_ bool) ([]*big.Int, error)

WithdrawFinal is a free data retrieval call binding the contract method 0x3477c81d.

Solidity: function withdrawFinal(uint256 amount_, bool afterDeleverage_) view returns(uint256[] transferAmts_)

func (*InstadappVaultCaller) WithdrawalFee

func (_InstadappVault *InstadappVaultCaller) WithdrawalFee(opts *bind.CallOpts) (*big.Int, error)

WithdrawalFee is a free data retrieval call binding the contract method 0x8bc7e8c4.

Solidity: function withdrawalFee() view returns(uint256)

type InstadappVaultCallerRaw

type InstadappVaultCallerRaw struct {
	Contract *InstadappVaultCaller // Generic read-only contract binding to access the raw methods on
}

InstadappVaultCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*InstadappVaultCallerRaw) Call

func (_InstadappVault *InstadappVaultCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type InstadappVaultCallerSession

type InstadappVaultCallerSession struct {
	Contract *InstadappVaultCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts         // Call options to use throughout this session
}

InstadappVaultCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*InstadappVaultCallerSession) Allowance

func (_InstadappVault *InstadappVaultCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*InstadappVaultCallerSession) Auth

func (_InstadappVault *InstadappVaultCallerSession) Auth() (common.Address, error)

Auth is a free data retrieval call binding the contract method 0xde9375f2.

Solidity: function auth() view returns(address)

func (*InstadappVaultCallerSession) BalanceOf

func (_InstadappVault *InstadappVaultCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*InstadappVaultCallerSession) Decimals

func (_InstadappVault *InstadappVaultCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*InstadappVaultCallerSession) DeleverageFee

func (_InstadappVault *InstadappVaultCallerSession) DeleverageFee() (*big.Int, error)

DeleverageFee is a free data retrieval call binding the contract method 0xa4c6c1e0.

Solidity: function deleverageFee() view returns(uint256)

func (*InstadappVaultCallerSession) GetCurrentExchangePrice

func (_InstadappVault *InstadappVaultCallerSession) GetCurrentExchangePrice() (struct {
	ExchangePrice *big.Int
	NewRevenue    *big.Int
}, error)

GetCurrentExchangePrice is a free data retrieval call binding the contract method 0xcc4a0158.

Solidity: function getCurrentExchangePrice() view returns(uint256 exchangePrice_, uint256 newRevenue_)

func (*InstadappVaultCallerSession) IsRebalancer

func (_InstadappVault *InstadappVaultCallerSession) IsRebalancer(arg0 common.Address) (bool, error)

IsRebalancer is a free data retrieval call binding the contract method 0x467c9eff.

Solidity: function isRebalancer(address ) view returns(bool)

func (*InstadappVaultCallerSession) LastRevenueExchangePrice

func (_InstadappVault *InstadappVaultCallerSession) LastRevenueExchangePrice() (*big.Int, error)

LastRevenueExchangePrice is a free data retrieval call binding the contract method 0x0f9775d5.

Solidity: function lastRevenueExchangePrice() view returns(uint256)

func (*InstadappVaultCallerSession) Name

func (_InstadappVault *InstadappVaultCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() pure returns(string)

func (*InstadappVaultCallerSession) Ratios

func (_InstadappVault *InstadappVaultCallerSession) Ratios() (struct {
	MaxLimit      uint16
	MinLimit      uint16
	MinLimitGap   uint16
	MaxBorrowRate *big.Int
}, error)

Ratios is a free data retrieval call binding the contract method 0xcf6d625e.

Solidity: function ratios() view returns(uint16 maxLimit, uint16 minLimit, uint16 minLimitGap, uint128 maxBorrowRate)

func (*InstadappVaultCallerSession) Revenue

func (_InstadappVault *InstadappVaultCallerSession) Revenue() (*big.Int, error)

Revenue is a free data retrieval call binding the contract method 0x3e9491a2.

Solidity: function revenue() view returns(uint256)

func (*InstadappVaultCallerSession) RevenueFee

func (_InstadappVault *InstadappVaultCallerSession) RevenueFee() (*big.Int, error)

RevenueFee is a free data retrieval call binding the contract method 0x36e4ec64.

Solidity: function revenueFee() view returns(uint256)

func (*InstadappVaultCallerSession) SwapFee

func (_InstadappVault *InstadappVaultCallerSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() view returns(uint256)

func (*InstadappVaultCallerSession) Symbol

func (_InstadappVault *InstadappVaultCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() pure returns(string)

func (*InstadappVaultCallerSession) TotalSupply

func (_InstadappVault *InstadappVaultCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*InstadappVaultCallerSession) VaultDsa

func (_InstadappVault *InstadappVaultCallerSession) VaultDsa() (common.Address, error)

VaultDsa is a free data retrieval call binding the contract method 0xdc935698.

Solidity: function vaultDsa() view returns(address)

func (*InstadappVaultCallerSession) WithdrawFinal

func (_InstadappVault *InstadappVaultCallerSession) WithdrawFinal(amount_ *big.Int, afterDeleverage_ bool) ([]*big.Int, error)

WithdrawFinal is a free data retrieval call binding the contract method 0x3477c81d.

Solidity: function withdrawFinal(uint256 amount_, bool afterDeleverage_) view returns(uint256[] transferAmts_)

func (*InstadappVaultCallerSession) WithdrawalFee

func (_InstadappVault *InstadappVaultCallerSession) WithdrawalFee() (*big.Int, error)

WithdrawalFee is a free data retrieval call binding the contract method 0x8bc7e8c4.

Solidity: function withdrawalFee() view returns(uint256)

type InstadappVaultFilterer

type InstadappVaultFilterer struct {
	// contains filtered or unexported fields
}

InstadappVaultFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewInstadappVaultFilterer

func NewInstadappVaultFilterer(address common.Address, filterer bind.ContractFilterer) (*InstadappVaultFilterer, error)

NewInstadappVaultFilterer creates a new log filterer instance of InstadappVault, bound to a specific deployed contract.

type InstadappVaultRaw

type InstadappVaultRaw struct {
	Contract *InstadappVault // Generic contract binding to access the raw methods on
}

InstadappVaultRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*InstadappVaultRaw) Call

func (_InstadappVault *InstadappVaultRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*InstadappVaultRaw) Transact

func (_InstadappVault *InstadappVaultRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*InstadappVaultRaw) Transfer

func (_InstadappVault *InstadappVaultRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type InstadappVaultSession

type InstadappVaultSession struct {
	Contract     *InstadappVault   // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

InstadappVaultSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*InstadappVaultSession) AddDSAAuth

func (_InstadappVault *InstadappVaultSession) AddDSAAuth(auth_ common.Address) (*types.Transaction, error)

AddDSAAuth is a paid mutator transaction binding the contract method 0x590ee346.

Solidity: function addDSAAuth(address auth_) returns()

func (*InstadappVaultSession) Allowance

func (_InstadappVault *InstadappVaultSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*InstadappVaultSession) Approve

func (_InstadappVault *InstadappVaultSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*InstadappVaultSession) Auth

func (_InstadappVault *InstadappVaultSession) Auth() (common.Address, error)

Auth is a free data retrieval call binding the contract method 0xde9375f2.

Solidity: function auth() view returns(address)

func (*InstadappVaultSession) BalanceOf

func (_InstadappVault *InstadappVaultSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*InstadappVaultSession) ChangeStatus

func (_InstadappVault *InstadappVaultSession) ChangeStatus(status_ *big.Int) (*types.Transaction, error)

ChangeStatus is a paid mutator transaction binding the contract method 0xe8025d77.

Solidity: function changeStatus(uint256 status_) returns()

func (*InstadappVaultSession) CollectRevenue

func (_InstadappVault *InstadappVaultSession) CollectRevenue(amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

CollectRevenue is a paid mutator transaction binding the contract method 0xb0037ada.

Solidity: function collectRevenue(uint256 amount_, address to_) returns()

func (*InstadappVaultSession) Decimals

func (_InstadappVault *InstadappVaultSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*InstadappVaultSession) DecreaseAllowance

func (_InstadappVault *InstadappVaultSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*InstadappVaultSession) Deleverage

func (_InstadappVault *InstadappVaultSession) Deleverage(amt_ *big.Int) (*types.Transaction, error)

Deleverage is a paid mutator transaction binding the contract method 0x9fdabec2.

Solidity: function deleverage(uint256 amt_) returns()

func (*InstadappVaultSession) DeleverageAndWithdraw

func (_InstadappVault *InstadappVaultSession) DeleverageAndWithdraw(deleverageAmt_ *big.Int, withdrawAmount_ *big.Int, to_ common.Address) (*types.Transaction, error)

DeleverageAndWithdraw is a paid mutator transaction binding the contract method 0x3b3fdb5c.

Solidity: function deleverageAndWithdraw(uint256 deleverageAmt_, uint256 withdrawAmount_, address to_) returns()

func (*InstadappVaultSession) DeleverageFee

func (_InstadappVault *InstadappVaultSession) DeleverageFee() (*big.Int, error)

DeleverageFee is a free data retrieval call binding the contract method 0xa4c6c1e0.

Solidity: function deleverageFee() view returns(uint256)

func (*InstadappVaultSession) GetCurrentExchangePrice

func (_InstadappVault *InstadappVaultSession) GetCurrentExchangePrice() (struct {
	ExchangePrice *big.Int
	NewRevenue    *big.Int
}, error)

GetCurrentExchangePrice is a free data retrieval call binding the contract method 0xcc4a0158.

Solidity: function getCurrentExchangePrice() view returns(uint256 exchangePrice_, uint256 newRevenue_)

func (*InstadappVaultSession) ImportPosition

func (_InstadappVault *InstadappVaultSession) ImportPosition(flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, to_ common.Address, stEthAmt_ *big.Int, wethAmt_ *big.Int) (*types.Transaction, error)

ImportPosition is a paid mutator transaction binding the contract method 0x98be6783.

Solidity: function importPosition(address flashTkn_, uint256 flashAmt_, uint256 route_, address to_, uint256 stEthAmt_, uint256 wethAmt_) returns()

func (*InstadappVaultSession) IncreaseAllowance

func (_InstadappVault *InstadappVaultSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*InstadappVaultSession) IsRebalancer

func (_InstadappVault *InstadappVaultSession) IsRebalancer(arg0 common.Address) (bool, error)

IsRebalancer is a free data retrieval call binding the contract method 0x467c9eff.

Solidity: function isRebalancer(address ) view returns(bool)

func (*InstadappVaultSession) LastRevenueExchangePrice

func (_InstadappVault *InstadappVaultSession) LastRevenueExchangePrice() (*big.Int, error)

LastRevenueExchangePrice is a free data retrieval call binding the contract method 0x0f9775d5.

Solidity: function lastRevenueExchangePrice() view returns(uint256)

func (*InstadappVaultSession) Leverage

func (_InstadappVault *InstadappVaultSession) Leverage(amt_ *big.Int) (*types.Transaction, error)

Leverage is a paid mutator transaction binding the contract method 0xacd431a8.

Solidity: function leverage(uint256 amt_) returns()

func (*InstadappVaultSession) Name

func (_InstadappVault *InstadappVaultSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() pure returns(string)

func (*InstadappVaultSession) Ratios

func (_InstadappVault *InstadappVaultSession) Ratios() (struct {
	MaxLimit      uint16
	MinLimit      uint16
	MinLimitGap   uint16
	MaxBorrowRate *big.Int
}, error)

Ratios is a free data retrieval call binding the contract method 0xcf6d625e.

Solidity: function ratios() view returns(uint16 maxLimit, uint16 minLimit, uint16 minLimitGap, uint128 maxBorrowRate)

func (*InstadappVaultSession) RebalanceOne

func (_InstadappVault *InstadappVaultSession) RebalanceOne(flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, vaults_ []common.Address, amts_ []*big.Int, excessDebt_ *big.Int, paybackDebt_ *big.Int, totalAmountToSwap_ *big.Int, extraWithdraw_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceOne is a paid mutator transaction binding the contract method 0x25258d0c.

Solidity: function rebalanceOne(address flashTkn_, uint256 flashAmt_, uint256 route_, address[] vaults_, uint256[] amts_, uint256 excessDebt_, uint256 paybackDebt_, uint256 totalAmountToSwap_, uint256 extraWithdraw_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultSession) RebalanceTwo

func (_InstadappVault *InstadappVaultSession) RebalanceTwo(withdrawAmt_ *big.Int, flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, totalAmountToSwap_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceTwo is a paid mutator transaction binding the contract method 0xf02105a5.

Solidity: function rebalanceTwo(uint256 withdrawAmt_, address flashTkn_, uint256 flashAmt_, uint256 route_, uint256 totalAmountToSwap_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultSession) Revenue

func (_InstadappVault *InstadappVaultSession) Revenue() (*big.Int, error)

Revenue is a free data retrieval call binding the contract method 0x3e9491a2.

Solidity: function revenue() view returns(uint256)

func (*InstadappVaultSession) RevenueFee

func (_InstadappVault *InstadappVaultSession) RevenueFee() (*big.Int, error)

RevenueFee is a free data retrieval call binding the contract method 0x36e4ec64.

Solidity: function revenueFee() view returns(uint256)

func (*InstadappVaultSession) Spell

func (_InstadappVault *InstadappVaultSession) Spell(to_ common.Address, calldata_ []byte, value_ *big.Int, operation_ *big.Int) (*types.Transaction, error)

Spell is a paid mutator transaction binding the contract method 0x15ff627d.

Solidity: function spell(address to_, bytes calldata_, uint256 value_, uint256 operation_) returns()

func (*InstadappVaultSession) Supply

func (_InstadappVault *InstadappVaultSession) Supply(token_ common.Address, amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x8b2a4df5.

Solidity: function supply(address token_, uint256 amount_, address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultSession) SupplyEth

func (_InstadappVault *InstadappVaultSession) SupplyEth(to_ common.Address) (*types.Transaction, error)

SupplyEth is a paid mutator transaction binding the contract method 0x87ee9312.

Solidity: function supplyEth(address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultSession) SwapFee

func (_InstadappVault *InstadappVaultSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() view returns(uint256)

func (*InstadappVaultSession) Symbol

func (_InstadappVault *InstadappVaultSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() pure returns(string)

func (*InstadappVaultSession) TotalSupply

func (_InstadappVault *InstadappVaultSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*InstadappVaultSession) Transfer

func (_InstadappVault *InstadappVaultSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*InstadappVaultSession) TransferFrom

func (_InstadappVault *InstadappVaultSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*InstadappVaultSession) UpdateAuth

func (_InstadappVault *InstadappVaultSession) UpdateAuth(auth_ common.Address) (*types.Transaction, error)

UpdateAuth is a paid mutator transaction binding the contract method 0xb8d07f4f.

Solidity: function updateAuth(address auth_) returns()

func (*InstadappVaultSession) UpdateFees

func (_InstadappVault *InstadappVaultSession) UpdateFees(revenueFee_ *big.Int, withdrawalFee_ *big.Int, swapFee_ *big.Int, deleverageFee_ *big.Int) (*types.Transaction, error)

UpdateFees is a paid mutator transaction binding the contract method 0xc6616ba1.

Solidity: function updateFees(uint256 revenueFee_, uint256 withdrawalFee_, uint256 swapFee_, uint256 deleverageFee_) returns()

func (*InstadappVaultSession) UpdateRatios

func (_InstadappVault *InstadappVaultSession) UpdateRatios(ratios_ []uint16) (*types.Transaction, error)

UpdateRatios is a paid mutator transaction binding the contract method 0x7c37411c.

Solidity: function updateRatios(uint16[] ratios_) returns()

func (*InstadappVaultSession) UpdateRebalancer

func (_InstadappVault *InstadappVaultSession) UpdateRebalancer(rebalancer_ common.Address, isRebalancer_ bool) (*types.Transaction, error)

UpdateRebalancer is a paid mutator transaction binding the contract method 0x0de30836.

Solidity: function updateRebalancer(address rebalancer_, bool isRebalancer_) returns()

func (*InstadappVaultSession) VaultDsa

func (_InstadappVault *InstadappVaultSession) VaultDsa() (common.Address, error)

VaultDsa is a free data retrieval call binding the contract method 0xdc935698.

Solidity: function vaultDsa() view returns(address)

func (*InstadappVaultSession) Withdraw

func (_InstadappVault *InstadappVaultSession) Withdraw(amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 amount_, address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultSession) WithdrawFinal

func (_InstadappVault *InstadappVaultSession) WithdrawFinal(amount_ *big.Int, afterDeleverage_ bool) ([]*big.Int, error)

WithdrawFinal is a free data retrieval call binding the contract method 0x3477c81d.

Solidity: function withdrawFinal(uint256 amount_, bool afterDeleverage_) view returns(uint256[] transferAmts_)

func (*InstadappVaultSession) WithdrawalFee

func (_InstadappVault *InstadappVaultSession) WithdrawalFee() (*big.Int, error)

WithdrawalFee is a free data retrieval call binding the contract method 0x8bc7e8c4.

Solidity: function withdrawalFee() view returns(uint256)

type InstadappVaultTransactor

type InstadappVaultTransactor struct {
	// contains filtered or unexported fields
}

InstadappVaultTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewInstadappVaultTransactor

func NewInstadappVaultTransactor(address common.Address, transactor bind.ContractTransactor) (*InstadappVaultTransactor, error)

NewInstadappVaultTransactor creates a new write-only instance of InstadappVault, bound to a specific deployed contract.

func (*InstadappVaultTransactor) AddDSAAuth

func (_InstadappVault *InstadappVaultTransactor) AddDSAAuth(opts *bind.TransactOpts, auth_ common.Address) (*types.Transaction, error)

AddDSAAuth is a paid mutator transaction binding the contract method 0x590ee346.

Solidity: function addDSAAuth(address auth_) returns()

func (*InstadappVaultTransactor) Approve

func (_InstadappVault *InstadappVaultTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*InstadappVaultTransactor) ChangeStatus

func (_InstadappVault *InstadappVaultTransactor) ChangeStatus(opts *bind.TransactOpts, status_ *big.Int) (*types.Transaction, error)

ChangeStatus is a paid mutator transaction binding the contract method 0xe8025d77.

Solidity: function changeStatus(uint256 status_) returns()

func (*InstadappVaultTransactor) CollectRevenue

func (_InstadappVault *InstadappVaultTransactor) CollectRevenue(opts *bind.TransactOpts, amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

CollectRevenue is a paid mutator transaction binding the contract method 0xb0037ada.

Solidity: function collectRevenue(uint256 amount_, address to_) returns()

func (*InstadappVaultTransactor) DecreaseAllowance

func (_InstadappVault *InstadappVaultTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*InstadappVaultTransactor) Deleverage

func (_InstadappVault *InstadappVaultTransactor) Deleverage(opts *bind.TransactOpts, amt_ *big.Int) (*types.Transaction, error)

Deleverage is a paid mutator transaction binding the contract method 0x9fdabec2.

Solidity: function deleverage(uint256 amt_) returns()

func (*InstadappVaultTransactor) DeleverageAndWithdraw

func (_InstadappVault *InstadappVaultTransactor) DeleverageAndWithdraw(opts *bind.TransactOpts, deleverageAmt_ *big.Int, withdrawAmount_ *big.Int, to_ common.Address) (*types.Transaction, error)

DeleverageAndWithdraw is a paid mutator transaction binding the contract method 0x3b3fdb5c.

Solidity: function deleverageAndWithdraw(uint256 deleverageAmt_, uint256 withdrawAmount_, address to_) returns()

func (*InstadappVaultTransactor) ImportPosition

func (_InstadappVault *InstadappVaultTransactor) ImportPosition(opts *bind.TransactOpts, flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, to_ common.Address, stEthAmt_ *big.Int, wethAmt_ *big.Int) (*types.Transaction, error)

ImportPosition is a paid mutator transaction binding the contract method 0x98be6783.

Solidity: function importPosition(address flashTkn_, uint256 flashAmt_, uint256 route_, address to_, uint256 stEthAmt_, uint256 wethAmt_) returns()

func (*InstadappVaultTransactor) IncreaseAllowance

func (_InstadappVault *InstadappVaultTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*InstadappVaultTransactor) Leverage

func (_InstadappVault *InstadappVaultTransactor) Leverage(opts *bind.TransactOpts, amt_ *big.Int) (*types.Transaction, error)

Leverage is a paid mutator transaction binding the contract method 0xacd431a8.

Solidity: function leverage(uint256 amt_) returns()

func (*InstadappVaultTransactor) RebalanceOne

func (_InstadappVault *InstadappVaultTransactor) RebalanceOne(opts *bind.TransactOpts, flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, vaults_ []common.Address, amts_ []*big.Int, excessDebt_ *big.Int, paybackDebt_ *big.Int, totalAmountToSwap_ *big.Int, extraWithdraw_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceOne is a paid mutator transaction binding the contract method 0x25258d0c.

Solidity: function rebalanceOne(address flashTkn_, uint256 flashAmt_, uint256 route_, address[] vaults_, uint256[] amts_, uint256 excessDebt_, uint256 paybackDebt_, uint256 totalAmountToSwap_, uint256 extraWithdraw_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultTransactor) RebalanceTwo

func (_InstadappVault *InstadappVaultTransactor) RebalanceTwo(opts *bind.TransactOpts, withdrawAmt_ *big.Int, flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, totalAmountToSwap_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceTwo is a paid mutator transaction binding the contract method 0xf02105a5.

Solidity: function rebalanceTwo(uint256 withdrawAmt_, address flashTkn_, uint256 flashAmt_, uint256 route_, uint256 totalAmountToSwap_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultTransactor) Spell

func (_InstadappVault *InstadappVaultTransactor) Spell(opts *bind.TransactOpts, to_ common.Address, calldata_ []byte, value_ *big.Int, operation_ *big.Int) (*types.Transaction, error)

Spell is a paid mutator transaction binding the contract method 0x15ff627d.

Solidity: function spell(address to_, bytes calldata_, uint256 value_, uint256 operation_) returns()

func (*InstadappVaultTransactor) Supply

func (_InstadappVault *InstadappVaultTransactor) Supply(opts *bind.TransactOpts, token_ common.Address, amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x8b2a4df5.

Solidity: function supply(address token_, uint256 amount_, address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultTransactor) SupplyEth

func (_InstadappVault *InstadappVaultTransactor) SupplyEth(opts *bind.TransactOpts, to_ common.Address) (*types.Transaction, error)

SupplyEth is a paid mutator transaction binding the contract method 0x87ee9312.

Solidity: function supplyEth(address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultTransactor) Transfer

func (_InstadappVault *InstadappVaultTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*InstadappVaultTransactor) TransferFrom

func (_InstadappVault *InstadappVaultTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*InstadappVaultTransactor) UpdateAuth

func (_InstadappVault *InstadappVaultTransactor) UpdateAuth(opts *bind.TransactOpts, auth_ common.Address) (*types.Transaction, error)

UpdateAuth is a paid mutator transaction binding the contract method 0xb8d07f4f.

Solidity: function updateAuth(address auth_) returns()

func (*InstadappVaultTransactor) UpdateFees

func (_InstadappVault *InstadappVaultTransactor) UpdateFees(opts *bind.TransactOpts, revenueFee_ *big.Int, withdrawalFee_ *big.Int, swapFee_ *big.Int, deleverageFee_ *big.Int) (*types.Transaction, error)

UpdateFees is a paid mutator transaction binding the contract method 0xc6616ba1.

Solidity: function updateFees(uint256 revenueFee_, uint256 withdrawalFee_, uint256 swapFee_, uint256 deleverageFee_) returns()

func (*InstadappVaultTransactor) UpdateRatios

func (_InstadappVault *InstadappVaultTransactor) UpdateRatios(opts *bind.TransactOpts, ratios_ []uint16) (*types.Transaction, error)

UpdateRatios is a paid mutator transaction binding the contract method 0x7c37411c.

Solidity: function updateRatios(uint16[] ratios_) returns()

func (*InstadappVaultTransactor) UpdateRebalancer

func (_InstadappVault *InstadappVaultTransactor) UpdateRebalancer(opts *bind.TransactOpts, rebalancer_ common.Address, isRebalancer_ bool) (*types.Transaction, error)

UpdateRebalancer is a paid mutator transaction binding the contract method 0x0de30836.

Solidity: function updateRebalancer(address rebalancer_, bool isRebalancer_) returns()

func (*InstadappVaultTransactor) Withdraw

func (_InstadappVault *InstadappVaultTransactor) Withdraw(opts *bind.TransactOpts, amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 amount_, address to_) returns(uint256 vtokenAmount_)

type InstadappVaultTransactorRaw

type InstadappVaultTransactorRaw struct {
	Contract *InstadappVaultTransactor // Generic write-only contract binding to access the raw methods on
}

InstadappVaultTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*InstadappVaultTransactorRaw) Transact

func (_InstadappVault *InstadappVaultTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*InstadappVaultTransactorRaw) Transfer

func (_InstadappVault *InstadappVaultTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type InstadappVaultTransactorSession

type InstadappVaultTransactorSession struct {
	Contract     *InstadappVaultTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

InstadappVaultTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*InstadappVaultTransactorSession) AddDSAAuth

func (_InstadappVault *InstadappVaultTransactorSession) AddDSAAuth(auth_ common.Address) (*types.Transaction, error)

AddDSAAuth is a paid mutator transaction binding the contract method 0x590ee346.

Solidity: function addDSAAuth(address auth_) returns()

func (*InstadappVaultTransactorSession) Approve

func (_InstadappVault *InstadappVaultTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*InstadappVaultTransactorSession) ChangeStatus

func (_InstadappVault *InstadappVaultTransactorSession) ChangeStatus(status_ *big.Int) (*types.Transaction, error)

ChangeStatus is a paid mutator transaction binding the contract method 0xe8025d77.

Solidity: function changeStatus(uint256 status_) returns()

func (*InstadappVaultTransactorSession) CollectRevenue

func (_InstadappVault *InstadappVaultTransactorSession) CollectRevenue(amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

CollectRevenue is a paid mutator transaction binding the contract method 0xb0037ada.

Solidity: function collectRevenue(uint256 amount_, address to_) returns()

func (*InstadappVaultTransactorSession) DecreaseAllowance

func (_InstadappVault *InstadappVaultTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*InstadappVaultTransactorSession) Deleverage

func (_InstadappVault *InstadappVaultTransactorSession) Deleverage(amt_ *big.Int) (*types.Transaction, error)

Deleverage is a paid mutator transaction binding the contract method 0x9fdabec2.

Solidity: function deleverage(uint256 amt_) returns()

func (*InstadappVaultTransactorSession) DeleverageAndWithdraw

func (_InstadappVault *InstadappVaultTransactorSession) DeleverageAndWithdraw(deleverageAmt_ *big.Int, withdrawAmount_ *big.Int, to_ common.Address) (*types.Transaction, error)

DeleverageAndWithdraw is a paid mutator transaction binding the contract method 0x3b3fdb5c.

Solidity: function deleverageAndWithdraw(uint256 deleverageAmt_, uint256 withdrawAmount_, address to_) returns()

func (*InstadappVaultTransactorSession) ImportPosition

func (_InstadappVault *InstadappVaultTransactorSession) ImportPosition(flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, to_ common.Address, stEthAmt_ *big.Int, wethAmt_ *big.Int) (*types.Transaction, error)

ImportPosition is a paid mutator transaction binding the contract method 0x98be6783.

Solidity: function importPosition(address flashTkn_, uint256 flashAmt_, uint256 route_, address to_, uint256 stEthAmt_, uint256 wethAmt_) returns()

func (*InstadappVaultTransactorSession) IncreaseAllowance

func (_InstadappVault *InstadappVaultTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*InstadappVaultTransactorSession) Leverage

func (_InstadappVault *InstadappVaultTransactorSession) Leverage(amt_ *big.Int) (*types.Transaction, error)

Leverage is a paid mutator transaction binding the contract method 0xacd431a8.

Solidity: function leverage(uint256 amt_) returns()

func (*InstadappVaultTransactorSession) RebalanceOne

func (_InstadappVault *InstadappVaultTransactorSession) RebalanceOne(flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, vaults_ []common.Address, amts_ []*big.Int, excessDebt_ *big.Int, paybackDebt_ *big.Int, totalAmountToSwap_ *big.Int, extraWithdraw_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceOne is a paid mutator transaction binding the contract method 0x25258d0c.

Solidity: function rebalanceOne(address flashTkn_, uint256 flashAmt_, uint256 route_, address[] vaults_, uint256[] amts_, uint256 excessDebt_, uint256 paybackDebt_, uint256 totalAmountToSwap_, uint256 extraWithdraw_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultTransactorSession) RebalanceTwo

func (_InstadappVault *InstadappVaultTransactorSession) RebalanceTwo(withdrawAmt_ *big.Int, flashTkn_ common.Address, flashAmt_ *big.Int, route_ *big.Int, totalAmountToSwap_ *big.Int, unitAmt_ *big.Int, oneInchData_ []byte) (*types.Transaction, error)

RebalanceTwo is a paid mutator transaction binding the contract method 0xf02105a5.

Solidity: function rebalanceTwo(uint256 withdrawAmt_, address flashTkn_, uint256 flashAmt_, uint256 route_, uint256 totalAmountToSwap_, uint256 unitAmt_, bytes oneInchData_) returns()

func (*InstadappVaultTransactorSession) Spell

func (_InstadappVault *InstadappVaultTransactorSession) Spell(to_ common.Address, calldata_ []byte, value_ *big.Int, operation_ *big.Int) (*types.Transaction, error)

Spell is a paid mutator transaction binding the contract method 0x15ff627d.

Solidity: function spell(address to_, bytes calldata_, uint256 value_, uint256 operation_) returns()

func (*InstadappVaultTransactorSession) Supply

func (_InstadappVault *InstadappVaultTransactorSession) Supply(token_ common.Address, amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x8b2a4df5.

Solidity: function supply(address token_, uint256 amount_, address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultTransactorSession) SupplyEth

func (_InstadappVault *InstadappVaultTransactorSession) SupplyEth(to_ common.Address) (*types.Transaction, error)

SupplyEth is a paid mutator transaction binding the contract method 0x87ee9312.

Solidity: function supplyEth(address to_) returns(uint256 vtokenAmount_)

func (*InstadappVaultTransactorSession) Transfer

func (_InstadappVault *InstadappVaultTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*InstadappVaultTransactorSession) TransferFrom

func (_InstadappVault *InstadappVaultTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*InstadappVaultTransactorSession) UpdateAuth

func (_InstadappVault *InstadappVaultTransactorSession) UpdateAuth(auth_ common.Address) (*types.Transaction, error)

UpdateAuth is a paid mutator transaction binding the contract method 0xb8d07f4f.

Solidity: function updateAuth(address auth_) returns()

func (*InstadappVaultTransactorSession) UpdateFees

func (_InstadappVault *InstadappVaultTransactorSession) UpdateFees(revenueFee_ *big.Int, withdrawalFee_ *big.Int, swapFee_ *big.Int, deleverageFee_ *big.Int) (*types.Transaction, error)

UpdateFees is a paid mutator transaction binding the contract method 0xc6616ba1.

Solidity: function updateFees(uint256 revenueFee_, uint256 withdrawalFee_, uint256 swapFee_, uint256 deleverageFee_) returns()

func (*InstadappVaultTransactorSession) UpdateRatios

func (_InstadappVault *InstadappVaultTransactorSession) UpdateRatios(ratios_ []uint16) (*types.Transaction, error)

UpdateRatios is a paid mutator transaction binding the contract method 0x7c37411c.

Solidity: function updateRatios(uint16[] ratios_) returns()

func (*InstadappVaultTransactorSession) UpdateRebalancer

func (_InstadappVault *InstadappVaultTransactorSession) UpdateRebalancer(rebalancer_ common.Address, isRebalancer_ bool) (*types.Transaction, error)

UpdateRebalancer is a paid mutator transaction binding the contract method 0x0de30836.

Solidity: function updateRebalancer(address rebalancer_, bool isRebalancer_) returns()

func (*InstadappVaultTransactorSession) Withdraw

func (_InstadappVault *InstadappVaultTransactorSession) Withdraw(amount_ *big.Int, to_ common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 amount_, address to_) returns(uint256 vtokenAmount_)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL