fortubev2

package
v1.4.1-rc-359 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Fortubev2ABI = "" /* 22488-byte string literal not displayed */

Fortubev2ABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fortubev2

type Fortubev2 struct {
	Fortubev2Caller     // Read-only binding to the contract
	Fortubev2Transactor // Write-only binding to the contract
	Fortubev2Filterer   // Log filterer for contract events
}

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

func NewFortubev2

func NewFortubev2(address common.Address, backend bind.ContractBackend) (*Fortubev2, error)

NewFortubev2 creates a new instance of Fortubev2, bound to a specific deployed contract.

type Fortubev2AddTokenToMarket

type Fortubev2AddTokenToMarket struct {
	Underlying common.Address
	FToken     common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

Fortubev2AddTokenToMarket represents a AddTokenToMarket event raised by the Fortubev2 contract.

type Fortubev2AddTokenToMarketIterator

type Fortubev2AddTokenToMarketIterator struct {
	Event *Fortubev2AddTokenToMarket // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Fortubev2AddTokenToMarketIterator is returned from FilterAddTokenToMarket and is used to iterate over the raw logs and unpacked data for AddTokenToMarket events raised by the Fortubev2 contract.

func (*Fortubev2AddTokenToMarketIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*Fortubev2AddTokenToMarketIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Fortubev2AddTokenToMarketIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Fortubev2Caller

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

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

func NewFortubev2Caller

func NewFortubev2Caller(address common.Address, caller bind.ContractCaller) (*Fortubev2Caller, error)

NewFortubev2Caller creates a new read-only instance of Fortubev2, bound to a specific deployed contract.

func (*Fortubev2Caller) AccountAssets

func (_Fortubev2 *Fortubev2Caller) AccountAssets(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

AccountAssets is a free data retrieval call binding the contract method 0xdce15449.

Solidity: function accountAssets(address , uint256 ) view returns(address)

func (*Fortubev2Caller) AddExp

func (_Fortubev2 *Fortubev2Caller) AddExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2Caller) Admin

func (_Fortubev2 *Fortubev2Caller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*Fortubev2Caller) AllMarkets

func (_Fortubev2 *Fortubev2Caller) AllMarkets(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllMarkets is a free data retrieval call binding the contract method 0x52d84d1e.

Solidity: function allMarkets(uint256 ) view returns(address)

func (*Fortubev2Caller) AllUnderlyingMarkets

func (_Fortubev2 *Fortubev2Caller) AllUnderlyingMarkets(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllUnderlyingMarkets is a free data retrieval call binding the contract method 0x941a9b11.

Solidity: function allUnderlyingMarkets(uint256 ) view returns(address)

func (*Fortubev2Caller) BankEntryAddress

func (_Fortubev2 *Fortubev2Caller) BankEntryAddress(opts *bind.CallOpts) (common.Address, error)

BankEntryAddress is a free data retrieval call binding the contract method 0x94df6bc4.

Solidity: function bankEntryAddress() view returns(address)

func (*Fortubev2Caller) CalcExchangeUnit

func (_Fortubev2 *Fortubev2Caller) CalcExchangeUnit(opts *bind.CallOpts, fToken common.Address) (*big.Int, error)

CalcExchangeUnit is a free data retrieval call binding the contract method 0x4d7ab633.

Solidity: function calcExchangeUnit(address fToken) view returns(uint256)

func (*Fortubev2Caller) CalcMaxBorrowAmount

func (_Fortubev2 *Fortubev2Caller) CalcMaxBorrowAmount(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmount is a free data retrieval call binding the contract method 0xec63aaa3.

Solidity: function calcMaxBorrowAmount(address user, address token) view returns(uint256)

func (*Fortubev2Caller) CalcMaxBorrowAmountWithRatio

func (_Fortubev2 *Fortubev2Caller) CalcMaxBorrowAmountWithRatio(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmountWithRatio is a free data retrieval call binding the contract method 0x75861c6f.

Solidity: function calcMaxBorrowAmountWithRatio(address user, address token) view returns(uint256)

func (*Fortubev2Caller) CalcMaxCashOutAmount

func (_Fortubev2 *Fortubev2Caller) CalcMaxCashOutAmount(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

CalcMaxCashOutAmount is a free data retrieval call binding the contract method 0xa9dc394c.

Solidity: function calcMaxCashOutAmount(address user, address token) view returns(uint256)

func (*Fortubev2Caller) CalcMaxWithdrawAmount

func (_Fortubev2 *Fortubev2Caller) CalcMaxWithdrawAmount(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

CalcMaxWithdrawAmount is a free data retrieval call binding the contract method 0x2b91acc0.

Solidity: function calcMaxWithdrawAmount(address user, address token) view returns(uint256)

func (*Fortubev2Caller) CalcRewardAmount

func (_Fortubev2 *Fortubev2Caller) CalcRewardAmount(opts *bind.CallOpts, gasSpend *big.Int, gasPrice *big.Int, _for common.Address) (*big.Int, error)

CalcRewardAmount is a free data retrieval call binding the contract method 0x2ddb60a3.

Solidity: function calcRewardAmount(uint256 gasSpend, uint256 gasPrice, address _for) view returns(uint256)

func (*Fortubev2Caller) CalcRewardAmountByFactor

func (_Fortubev2 *Fortubev2Caller) CalcRewardAmountByFactor(opts *bind.CallOpts, gasSpend *big.Int, gasPrice *big.Int, _for common.Address, factor *big.Int) (*big.Int, error)

CalcRewardAmountByFactor is a free data retrieval call binding the contract method 0x9ee30be8.

Solidity: function calcRewardAmountByFactor(uint256 gasSpend, uint256 gasPrice, address _for, uint256 factor) view returns(uint256)

func (*Fortubev2Caller) CheckAccountsIn

func (_Fortubev2 *Fortubev2Caller) CheckAccountsIn(opts *bind.CallOpts, account common.Address, fToken common.Address) (bool, error)

CheckAccountsIn is a free data retrieval call binding the contract method 0xa53caa16.

Solidity: function checkAccountsIn(address account, address fToken) view returns(bool)

func (*Fortubev2Caller) CloseFactor

func (_Fortubev2 *Fortubev2Caller) CloseFactor(opts *bind.CallOpts) (*big.Int, error)

CloseFactor is a free data retrieval call binding the contract method 0x05308b9f.

Solidity: function closeFactor() view returns(uint256)

func (*Fortubev2Caller) DivExp

func (_Fortubev2 *Fortubev2Caller) DivExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2Caller) DivScalar

func (_Fortubev2 *Fortubev2Caller) DivScalar(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2Caller) DivScalarByExp

func (_Fortubev2 *Fortubev2Caller) DivScalarByExp(opts *bind.CallOpts, scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2Caller) DivScalarByExpTruncate

func (_Fortubev2 *Fortubev2Caller) DivScalarByExpTruncate(opts *bind.CallOpts, scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2Caller) FetchAssetPrice

func (_Fortubev2 *Fortubev2Caller) FetchAssetPrice(opts *bind.CallOpts, token common.Address) (*big.Int, bool, error)

FetchAssetPrice is a free data retrieval call binding the contract method 0xddec280e.

Solidity: function fetchAssetPrice(address token) view returns(uint256, bool)

func (*Fortubev2Caller) GetAccountLiquidity

func (_Fortubev2 *Fortubev2Caller) GetAccountLiquidity(opts *bind.CallOpts, account common.Address) (struct {
	Liquidity *big.Int
	Shortfall *big.Int
}, error)

GetAccountLiquidity is a free data retrieval call binding the contract method 0x5ec88c79.

Solidity: function getAccountLiquidity(address account) view returns(uint256 liquidity, uint256 shortfall)

func (*Fortubev2Caller) GetAccountLiquidityExcludeDeposit

func (_Fortubev2 *Fortubev2Caller) GetAccountLiquidityExcludeDeposit(opts *bind.CallOpts, account common.Address, token common.Address) (*big.Int, *big.Int, error)

GetAccountLiquidityExcludeDeposit is a free data retrieval call binding the contract method 0x70de3062.

Solidity: function getAccountLiquidityExcludeDeposit(address account, address token) view returns(uint256, uint256)

func (*Fortubev2Caller) GetAllMarkets

func (_Fortubev2 *Fortubev2Caller) GetAllMarkets(opts *bind.CallOpts) ([]common.Address, error)

GetAllMarkets is a free data retrieval call binding the contract method 0xb0772d0b.

Solidity: function getAllMarkets() view returns(address[])

func (*Fortubev2Caller) GetAssetsIn

func (_Fortubev2 *Fortubev2Caller) GetAssetsIn(opts *bind.CallOpts, account common.Address) ([]common.Address, error)

GetAssetsIn is a free data retrieval call binding the contract method 0xabfceffc.

Solidity: function getAssetsIn(address account) view returns(address[])

func (*Fortubev2Caller) GetCashAfter

func (_Fortubev2 *Fortubev2Caller) GetCashAfter(opts *bind.CallOpts, underlying common.Address, transferInAmount *big.Int) (*big.Int, error)

GetCashAfter is a free data retrieval call binding the contract method 0xa3f0fa20.

Solidity: function getCashAfter(address underlying, uint256 transferInAmount) view returns(uint256)

func (*Fortubev2Caller) GetCashPrior

func (_Fortubev2 *Fortubev2Caller) GetCashPrior(opts *bind.CallOpts, underlying common.Address) (*big.Int, error)

GetCashPrior is a free data retrieval call binding the contract method 0x9f77437b.

Solidity: function getCashPrior(address underlying) view returns(uint256)

func (*Fortubev2Caller) GetDiv

func (_Fortubev2 *Fortubev2Caller) GetDiv(opts *bind.CallOpts, num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2Caller) GetExp

func (_Fortubev2 *Fortubev2Caller) GetExp(opts *bind.CallOpts, num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2Caller) GetFTokeAddress

func (_Fortubev2 *Fortubev2Caller) GetFTokeAddress(opts *bind.CallOpts, underlying common.Address) (common.Address, error)

GetFTokeAddress is a free data retrieval call binding the contract method 0xfc1ce708.

Solidity: function getFTokeAddress(address underlying) view returns(address)

func (*Fortubev2Caller) GetTotalDepositAndBorrow

func (_Fortubev2 *Fortubev2Caller) GetTotalDepositAndBorrow(opts *bind.CallOpts, account common.Address) (*big.Int, *big.Int, error)

GetTotalDepositAndBorrow is a free data retrieval call binding the contract method 0x8e93aa73.

Solidity: function getTotalDepositAndBorrow(address account) view returns(uint256, uint256)

func (*Fortubev2Caller) GetUserLiquidity

func (_Fortubev2 *Fortubev2Caller) GetUserLiquidity(opts *bind.CallOpts, account common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidity is a free data retrieval call binding the contract method 0x87dac0cc.

Solidity: function getUserLiquidity(address account, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2Caller) GetUserLiquidityExcludeToken

func (_Fortubev2 *Fortubev2Caller) GetUserLiquidityExcludeToken(opts *bind.CallOpts, account common.Address, excludeToken common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidityExcludeToken is a free data retrieval call binding the contract method 0x8ac4ddc8.

Solidity: function getUserLiquidityExcludeToken(address account, address excludeToken, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2Caller) IsFTokenValid

func (_Fortubev2 *Fortubev2Caller) IsFTokenValid(opts *bind.CallOpts, fToken common.Address) (bool, error)

IsFTokenValid is a free data retrieval call binding the contract method 0x2a4d98cf.

Solidity: function isFTokenValid(address fToken) view returns(bool)

func (*Fortubev2Caller) LiquidateTokens

func (_Fortubev2 *Fortubev2Caller) LiquidateTokens(opts *bind.CallOpts, fTokenBorrowed common.Address, fTokenCollateral common.Address, actualRepayAmount *big.Int) (*big.Int, error)

LiquidateTokens is a free data retrieval call binding the contract method 0x0c7fa6e0.

Solidity: function liquidateTokens(address fTokenBorrowed, address fTokenCollateral, uint256 actualRepayAmount) view returns(uint256)

func (*Fortubev2Caller) Markets

func (_Fortubev2 *Fortubev2Caller) Markets(opts *bind.CallOpts, arg0 common.Address) (struct {
	FTokenAddress        common.Address
	IsValid              bool
	CollateralAbility    *big.Int
	LiquidationIncentive *big.Int
}, error)

Markets is a free data retrieval call binding the contract method 0x8e8f294b.

Solidity: function markets(address ) view returns(address fTokenAddress, bool isValid, uint256 collateralAbility, uint256 liquidationIncentive)

func (*Fortubev2Caller) MarketsContains

func (_Fortubev2 *Fortubev2Caller) MarketsContains(opts *bind.CallOpts, fToken common.Address) (bool, error)

MarketsContains is a free data retrieval call binding the contract method 0x9deec7cb.

Solidity: function marketsContains(address fToken) view returns(bool)

func (*Fortubev2Caller) MulExp

func (_Fortubev2 *Fortubev2Caller) MulExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2Caller) MulExp3

func (_Fortubev2 *Fortubev2Caller) MulExp3(opts *bind.CallOpts, a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*Fortubev2Caller) MulScalar

func (_Fortubev2 *Fortubev2Caller) MulScalar(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*Fortubev2Caller) MulScalarTruncate

func (_Fortubev2 *Fortubev2Caller) MulScalarTruncate(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2Caller) MulScalarTruncateAddUInt

func (_Fortubev2 *Fortubev2Caller) MulScalarTruncateAddUInt(opts *bind.CallOpts, a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*Fortubev2Caller) Mulsig

func (_Fortubev2 *Fortubev2Caller) Mulsig(opts *bind.CallOpts) (common.Address, error)

Mulsig is a free data retrieval call binding the contract method 0x1a435b55.

Solidity: function mulsig() view returns(address)

func (*Fortubev2Caller) Oracle

func (_Fortubev2 *Fortubev2Caller) Oracle(opts *bind.CallOpts) (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*Fortubev2Caller) ProposedAdmin

func (_Fortubev2 *Fortubev2Caller) ProposedAdmin(opts *bind.CallOpts) (common.Address, error)

ProposedAdmin is a free data retrieval call binding the contract method 0x32f751ec.

Solidity: function proposedAdmin() view returns(address)

func (*Fortubev2Caller) RepayCheck

func (_Fortubev2 *Fortubev2Caller) RepayCheck(opts *bind.CallOpts, underlying common.Address) error

RepayCheck is a free data retrieval call binding the contract method 0x44f4b506.

Solidity: function repayCheck(address underlying) view returns()

func (*Fortubev2Caller) RewardFactors

func (_Fortubev2 *Fortubev2Caller) RewardFactors(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

RewardFactors is a free data retrieval call binding the contract method 0xdd4b8b7d.

Solidity: function rewardFactors(uint256 ) view returns(uint256)

func (*Fortubev2Caller) RewardPool

func (_Fortubev2 *Fortubev2Caller) RewardPool(opts *bind.CallOpts) (common.Address, error)

RewardPool is a free data retrieval call binding the contract method 0x66666aa9.

Solidity: function rewardPool() view returns(address)

func (*Fortubev2Caller) SeizeCheck

func (_Fortubev2 *Fortubev2Caller) SeizeCheck(opts *bind.CallOpts, cTokenCollateral common.Address, cTokenBorrowed common.Address) error

SeizeCheck is a free data retrieval call binding the contract method 0x7ceb4c97.

Solidity: function seizeCheck(address cTokenCollateral, address cTokenBorrowed) view returns()

func (*Fortubev2Caller) SubExp

func (_Fortubev2 *Fortubev2Caller) SubExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2Caller) TheForceToken

func (_Fortubev2 *Fortubev2Caller) TheForceToken(opts *bind.CallOpts) (common.Address, error)

TheForceToken is a free data retrieval call binding the contract method 0x96a614d2.

Solidity: function theForceToken() view returns(address)

func (*Fortubev2Caller) TokenDecimals

func (_Fortubev2 *Fortubev2Caller) TokenDecimals(opts *bind.CallOpts, token common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address token) view returns(uint256)

func (*Fortubev2Caller) TransferEthGasCost

func (_Fortubev2 *Fortubev2Caller) TransferEthGasCost(opts *bind.CallOpts) (*big.Int, error)

TransferEthGasCost is a free data retrieval call binding the contract method 0x4f9c751e.

Solidity: function transferEthGasCost() view returns(uint256)

func (*Fortubev2Caller) Truncate

func (_Fortubev2 *Fortubev2Caller) Truncate(opts *bind.CallOpts, exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*Fortubev2Caller) WithdrawCheck

func (_Fortubev2 *Fortubev2Caller) WithdrawCheck(opts *bind.CallOpts, fToken common.Address, withdrawer common.Address, withdrawTokens *big.Int) (*big.Int, error)

WithdrawCheck is a free data retrieval call binding the contract method 0x57986129.

Solidity: function withdrawCheck(address fToken, address withdrawer, uint256 withdrawTokens) view returns(uint256)

type Fortubev2CallerRaw

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

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

func (*Fortubev2CallerRaw) Call

func (_Fortubev2 *Fortubev2CallerRaw) 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 Fortubev2CallerSession

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

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

func (*Fortubev2CallerSession) AccountAssets

func (_Fortubev2 *Fortubev2CallerSession) AccountAssets(arg0 common.Address, arg1 *big.Int) (common.Address, error)

AccountAssets is a free data retrieval call binding the contract method 0xdce15449.

Solidity: function accountAssets(address , uint256 ) view returns(address)

func (*Fortubev2CallerSession) AddExp

func (_Fortubev2 *Fortubev2CallerSession) AddExp(a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2CallerSession) Admin

func (_Fortubev2 *Fortubev2CallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*Fortubev2CallerSession) AllMarkets

func (_Fortubev2 *Fortubev2CallerSession) AllMarkets(arg0 *big.Int) (common.Address, error)

AllMarkets is a free data retrieval call binding the contract method 0x52d84d1e.

Solidity: function allMarkets(uint256 ) view returns(address)

func (*Fortubev2CallerSession) AllUnderlyingMarkets

func (_Fortubev2 *Fortubev2CallerSession) AllUnderlyingMarkets(arg0 *big.Int) (common.Address, error)

AllUnderlyingMarkets is a free data retrieval call binding the contract method 0x941a9b11.

Solidity: function allUnderlyingMarkets(uint256 ) view returns(address)

func (*Fortubev2CallerSession) BankEntryAddress

func (_Fortubev2 *Fortubev2CallerSession) BankEntryAddress() (common.Address, error)

BankEntryAddress is a free data retrieval call binding the contract method 0x94df6bc4.

Solidity: function bankEntryAddress() view returns(address)

func (*Fortubev2CallerSession) CalcExchangeUnit

func (_Fortubev2 *Fortubev2CallerSession) CalcExchangeUnit(fToken common.Address) (*big.Int, error)

CalcExchangeUnit is a free data retrieval call binding the contract method 0x4d7ab633.

Solidity: function calcExchangeUnit(address fToken) view returns(uint256)

func (*Fortubev2CallerSession) CalcMaxBorrowAmount

func (_Fortubev2 *Fortubev2CallerSession) CalcMaxBorrowAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmount is a free data retrieval call binding the contract method 0xec63aaa3.

Solidity: function calcMaxBorrowAmount(address user, address token) view returns(uint256)

func (*Fortubev2CallerSession) CalcMaxBorrowAmountWithRatio

func (_Fortubev2 *Fortubev2CallerSession) CalcMaxBorrowAmountWithRatio(user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmountWithRatio is a free data retrieval call binding the contract method 0x75861c6f.

Solidity: function calcMaxBorrowAmountWithRatio(address user, address token) view returns(uint256)

func (*Fortubev2CallerSession) CalcMaxCashOutAmount

func (_Fortubev2 *Fortubev2CallerSession) CalcMaxCashOutAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxCashOutAmount is a free data retrieval call binding the contract method 0xa9dc394c.

Solidity: function calcMaxCashOutAmount(address user, address token) view returns(uint256)

func (*Fortubev2CallerSession) CalcMaxWithdrawAmount

func (_Fortubev2 *Fortubev2CallerSession) CalcMaxWithdrawAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxWithdrawAmount is a free data retrieval call binding the contract method 0x2b91acc0.

Solidity: function calcMaxWithdrawAmount(address user, address token) view returns(uint256)

func (*Fortubev2CallerSession) CalcRewardAmount

func (_Fortubev2 *Fortubev2CallerSession) CalcRewardAmount(gasSpend *big.Int, gasPrice *big.Int, _for common.Address) (*big.Int, error)

CalcRewardAmount is a free data retrieval call binding the contract method 0x2ddb60a3.

Solidity: function calcRewardAmount(uint256 gasSpend, uint256 gasPrice, address _for) view returns(uint256)

func (*Fortubev2CallerSession) CalcRewardAmountByFactor

func (_Fortubev2 *Fortubev2CallerSession) CalcRewardAmountByFactor(gasSpend *big.Int, gasPrice *big.Int, _for common.Address, factor *big.Int) (*big.Int, error)

CalcRewardAmountByFactor is a free data retrieval call binding the contract method 0x9ee30be8.

Solidity: function calcRewardAmountByFactor(uint256 gasSpend, uint256 gasPrice, address _for, uint256 factor) view returns(uint256)

func (*Fortubev2CallerSession) CheckAccountsIn

func (_Fortubev2 *Fortubev2CallerSession) CheckAccountsIn(account common.Address, fToken common.Address) (bool, error)

CheckAccountsIn is a free data retrieval call binding the contract method 0xa53caa16.

Solidity: function checkAccountsIn(address account, address fToken) view returns(bool)

func (*Fortubev2CallerSession) CloseFactor

func (_Fortubev2 *Fortubev2CallerSession) CloseFactor() (*big.Int, error)

CloseFactor is a free data retrieval call binding the contract method 0x05308b9f.

Solidity: function closeFactor() view returns(uint256)

func (*Fortubev2CallerSession) DivExp

func (_Fortubev2 *Fortubev2CallerSession) DivExp(a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2CallerSession) DivScalar

func (_Fortubev2 *Fortubev2CallerSession) DivScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2CallerSession) DivScalarByExp

func (_Fortubev2 *Fortubev2CallerSession) DivScalarByExp(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2CallerSession) DivScalarByExpTruncate

func (_Fortubev2 *Fortubev2CallerSession) DivScalarByExpTruncate(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2CallerSession) FetchAssetPrice

func (_Fortubev2 *Fortubev2CallerSession) FetchAssetPrice(token common.Address) (*big.Int, bool, error)

FetchAssetPrice is a free data retrieval call binding the contract method 0xddec280e.

Solidity: function fetchAssetPrice(address token) view returns(uint256, bool)

func (*Fortubev2CallerSession) GetAccountLiquidity

func (_Fortubev2 *Fortubev2CallerSession) GetAccountLiquidity(account common.Address) (struct {
	Liquidity *big.Int
	Shortfall *big.Int
}, error)

GetAccountLiquidity is a free data retrieval call binding the contract method 0x5ec88c79.

Solidity: function getAccountLiquidity(address account) view returns(uint256 liquidity, uint256 shortfall)

func (*Fortubev2CallerSession) GetAccountLiquidityExcludeDeposit

func (_Fortubev2 *Fortubev2CallerSession) GetAccountLiquidityExcludeDeposit(account common.Address, token common.Address) (*big.Int, *big.Int, error)

GetAccountLiquidityExcludeDeposit is a free data retrieval call binding the contract method 0x70de3062.

Solidity: function getAccountLiquidityExcludeDeposit(address account, address token) view returns(uint256, uint256)

func (*Fortubev2CallerSession) GetAllMarkets

func (_Fortubev2 *Fortubev2CallerSession) GetAllMarkets() ([]common.Address, error)

GetAllMarkets is a free data retrieval call binding the contract method 0xb0772d0b.

Solidity: function getAllMarkets() view returns(address[])

func (*Fortubev2CallerSession) GetAssetsIn

func (_Fortubev2 *Fortubev2CallerSession) GetAssetsIn(account common.Address) ([]common.Address, error)

GetAssetsIn is a free data retrieval call binding the contract method 0xabfceffc.

Solidity: function getAssetsIn(address account) view returns(address[])

func (*Fortubev2CallerSession) GetCashAfter

func (_Fortubev2 *Fortubev2CallerSession) GetCashAfter(underlying common.Address, transferInAmount *big.Int) (*big.Int, error)

GetCashAfter is a free data retrieval call binding the contract method 0xa3f0fa20.

Solidity: function getCashAfter(address underlying, uint256 transferInAmount) view returns(uint256)

func (*Fortubev2CallerSession) GetCashPrior

func (_Fortubev2 *Fortubev2CallerSession) GetCashPrior(underlying common.Address) (*big.Int, error)

GetCashPrior is a free data retrieval call binding the contract method 0x9f77437b.

Solidity: function getCashPrior(address underlying) view returns(uint256)

func (*Fortubev2CallerSession) GetDiv

func (_Fortubev2 *Fortubev2CallerSession) GetDiv(num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2CallerSession) GetExp

func (_Fortubev2 *Fortubev2CallerSession) GetExp(num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2CallerSession) GetFTokeAddress

func (_Fortubev2 *Fortubev2CallerSession) GetFTokeAddress(underlying common.Address) (common.Address, error)

GetFTokeAddress is a free data retrieval call binding the contract method 0xfc1ce708.

Solidity: function getFTokeAddress(address underlying) view returns(address)

func (*Fortubev2CallerSession) GetTotalDepositAndBorrow

func (_Fortubev2 *Fortubev2CallerSession) GetTotalDepositAndBorrow(account common.Address) (*big.Int, *big.Int, error)

GetTotalDepositAndBorrow is a free data retrieval call binding the contract method 0x8e93aa73.

Solidity: function getTotalDepositAndBorrow(address account) view returns(uint256, uint256)

func (*Fortubev2CallerSession) GetUserLiquidity

func (_Fortubev2 *Fortubev2CallerSession) GetUserLiquidity(account common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidity is a free data retrieval call binding the contract method 0x87dac0cc.

Solidity: function getUserLiquidity(address account, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2CallerSession) GetUserLiquidityExcludeToken

func (_Fortubev2 *Fortubev2CallerSession) GetUserLiquidityExcludeToken(account common.Address, excludeToken common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidityExcludeToken is a free data retrieval call binding the contract method 0x8ac4ddc8.

Solidity: function getUserLiquidityExcludeToken(address account, address excludeToken, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2CallerSession) IsFTokenValid

func (_Fortubev2 *Fortubev2CallerSession) IsFTokenValid(fToken common.Address) (bool, error)

IsFTokenValid is a free data retrieval call binding the contract method 0x2a4d98cf.

Solidity: function isFTokenValid(address fToken) view returns(bool)

func (*Fortubev2CallerSession) LiquidateTokens

func (_Fortubev2 *Fortubev2CallerSession) LiquidateTokens(fTokenBorrowed common.Address, fTokenCollateral common.Address, actualRepayAmount *big.Int) (*big.Int, error)

LiquidateTokens is a free data retrieval call binding the contract method 0x0c7fa6e0.

Solidity: function liquidateTokens(address fTokenBorrowed, address fTokenCollateral, uint256 actualRepayAmount) view returns(uint256)

func (*Fortubev2CallerSession) Markets

func (_Fortubev2 *Fortubev2CallerSession) Markets(arg0 common.Address) (struct {
	FTokenAddress        common.Address
	IsValid              bool
	CollateralAbility    *big.Int
	LiquidationIncentive *big.Int
}, error)

Markets is a free data retrieval call binding the contract method 0x8e8f294b.

Solidity: function markets(address ) view returns(address fTokenAddress, bool isValid, uint256 collateralAbility, uint256 liquidationIncentive)

func (*Fortubev2CallerSession) MarketsContains

func (_Fortubev2 *Fortubev2CallerSession) MarketsContains(fToken common.Address) (bool, error)

MarketsContains is a free data retrieval call binding the contract method 0x9deec7cb.

Solidity: function marketsContains(address fToken) view returns(bool)

func (*Fortubev2CallerSession) MulExp

func (_Fortubev2 *Fortubev2CallerSession) MulExp(a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2CallerSession) MulExp3

func (_Fortubev2 *Fortubev2CallerSession) MulExp3(a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*Fortubev2CallerSession) MulScalar

func (_Fortubev2 *Fortubev2CallerSession) MulScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*Fortubev2CallerSession) MulScalarTruncate

func (_Fortubev2 *Fortubev2CallerSession) MulScalarTruncate(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2CallerSession) MulScalarTruncateAddUInt

func (_Fortubev2 *Fortubev2CallerSession) MulScalarTruncateAddUInt(a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*Fortubev2CallerSession) Mulsig

func (_Fortubev2 *Fortubev2CallerSession) Mulsig() (common.Address, error)

Mulsig is a free data retrieval call binding the contract method 0x1a435b55.

Solidity: function mulsig() view returns(address)

func (*Fortubev2CallerSession) Oracle

func (_Fortubev2 *Fortubev2CallerSession) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*Fortubev2CallerSession) ProposedAdmin

func (_Fortubev2 *Fortubev2CallerSession) ProposedAdmin() (common.Address, error)

ProposedAdmin is a free data retrieval call binding the contract method 0x32f751ec.

Solidity: function proposedAdmin() view returns(address)

func (*Fortubev2CallerSession) RepayCheck

func (_Fortubev2 *Fortubev2CallerSession) RepayCheck(underlying common.Address) error

RepayCheck is a free data retrieval call binding the contract method 0x44f4b506.

Solidity: function repayCheck(address underlying) view returns()

func (*Fortubev2CallerSession) RewardFactors

func (_Fortubev2 *Fortubev2CallerSession) RewardFactors(arg0 *big.Int) (*big.Int, error)

RewardFactors is a free data retrieval call binding the contract method 0xdd4b8b7d.

Solidity: function rewardFactors(uint256 ) view returns(uint256)

func (*Fortubev2CallerSession) RewardPool

func (_Fortubev2 *Fortubev2CallerSession) RewardPool() (common.Address, error)

RewardPool is a free data retrieval call binding the contract method 0x66666aa9.

Solidity: function rewardPool() view returns(address)

func (*Fortubev2CallerSession) SeizeCheck

func (_Fortubev2 *Fortubev2CallerSession) SeizeCheck(cTokenCollateral common.Address, cTokenBorrowed common.Address) error

SeizeCheck is a free data retrieval call binding the contract method 0x7ceb4c97.

Solidity: function seizeCheck(address cTokenCollateral, address cTokenBorrowed) view returns()

func (*Fortubev2CallerSession) SubExp

func (_Fortubev2 *Fortubev2CallerSession) SubExp(a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2CallerSession) TheForceToken

func (_Fortubev2 *Fortubev2CallerSession) TheForceToken() (common.Address, error)

TheForceToken is a free data retrieval call binding the contract method 0x96a614d2.

Solidity: function theForceToken() view returns(address)

func (*Fortubev2CallerSession) TokenDecimals

func (_Fortubev2 *Fortubev2CallerSession) TokenDecimals(token common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address token) view returns(uint256)

func (*Fortubev2CallerSession) TransferEthGasCost

func (_Fortubev2 *Fortubev2CallerSession) TransferEthGasCost() (*big.Int, error)

TransferEthGasCost is a free data retrieval call binding the contract method 0x4f9c751e.

Solidity: function transferEthGasCost() view returns(uint256)

func (*Fortubev2CallerSession) Truncate

func (_Fortubev2 *Fortubev2CallerSession) Truncate(exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*Fortubev2CallerSession) WithdrawCheck

func (_Fortubev2 *Fortubev2CallerSession) WithdrawCheck(fToken common.Address, withdrawer common.Address, withdrawTokens *big.Int) (*big.Int, error)

WithdrawCheck is a free data retrieval call binding the contract method 0x57986129.

Solidity: function withdrawCheck(address fToken, address withdrawer, uint256 withdrawTokens) view returns(uint256)

type Fortubev2Filterer

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

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

func NewFortubev2Filterer

func NewFortubev2Filterer(address common.Address, filterer bind.ContractFilterer) (*Fortubev2Filterer, error)

NewFortubev2Filterer creates a new log filterer instance of Fortubev2, bound to a specific deployed contract.

func (*Fortubev2Filterer) FilterAddTokenToMarket

func (_Fortubev2 *Fortubev2Filterer) FilterAddTokenToMarket(opts *bind.FilterOpts) (*Fortubev2AddTokenToMarketIterator, error)

FilterAddTokenToMarket is a free log retrieval operation binding the contract event 0x3f7e38f5830b709d15de3d0a45066834f763a6fe34ef0e4a25dde26a8fa8399b.

Solidity: event AddTokenToMarket(address underlying, address fToken)

func (*Fortubev2Filterer) ParseAddTokenToMarket

func (_Fortubev2 *Fortubev2Filterer) ParseAddTokenToMarket(log types.Log) (*Fortubev2AddTokenToMarket, error)

ParseAddTokenToMarket is a log parse operation binding the contract event 0x3f7e38f5830b709d15de3d0a45066834f763a6fe34ef0e4a25dde26a8fa8399b.

Solidity: event AddTokenToMarket(address underlying, address fToken)

func (*Fortubev2Filterer) WatchAddTokenToMarket

func (_Fortubev2 *Fortubev2Filterer) WatchAddTokenToMarket(opts *bind.WatchOpts, sink chan<- *Fortubev2AddTokenToMarket) (event.Subscription, error)

WatchAddTokenToMarket is a free log subscription operation binding the contract event 0x3f7e38f5830b709d15de3d0a45066834f763a6fe34ef0e4a25dde26a8fa8399b.

Solidity: event AddTokenToMarket(address underlying, address fToken)

type Fortubev2Raw

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

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

func (*Fortubev2Raw) Call

func (_Fortubev2 *Fortubev2Raw) 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 (*Fortubev2Raw) Transact

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

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

func (*Fortubev2Raw) Transfer

func (_Fortubev2 *Fortubev2Raw) 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 Fortubev2Session

type Fortubev2Session struct {
	Contract     *Fortubev2        // 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
}

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

func (*Fortubev2Session) AccountAssets

func (_Fortubev2 *Fortubev2Session) AccountAssets(arg0 common.Address, arg1 *big.Int) (common.Address, error)

AccountAssets is a free data retrieval call binding the contract method 0xdce15449.

Solidity: function accountAssets(address , uint256 ) view returns(address)

func (*Fortubev2Session) AddExp

func (_Fortubev2 *Fortubev2Session) AddExp(a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2Session) AddReserves

func (_Fortubev2 *Fortubev2Session) AddReserves(underlying common.Address, addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0xfc99bd9a.

Solidity: function addReserves(address underlying, uint256 addAmount) payable returns()

func (*Fortubev2Session) Admin

func (_Fortubev2 *Fortubev2Session) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*Fortubev2Session) AllMarkets

func (_Fortubev2 *Fortubev2Session) AllMarkets(arg0 *big.Int) (common.Address, error)

AllMarkets is a free data retrieval call binding the contract method 0x52d84d1e.

Solidity: function allMarkets(uint256 ) view returns(address)

func (*Fortubev2Session) AllUnderlyingMarkets

func (_Fortubev2 *Fortubev2Session) AllUnderlyingMarkets(arg0 *big.Int) (common.Address, error)

AllUnderlyingMarkets is a free data retrieval call binding the contract method 0x941a9b11.

Solidity: function allUnderlyingMarkets(uint256 ) view returns(address)

func (*Fortubev2Session) BankEntryAddress

func (_Fortubev2 *Fortubev2Session) BankEntryAddress() (common.Address, error)

BankEntryAddress is a free data retrieval call binding the contract method 0x94df6bc4.

Solidity: function bankEntryAddress() view returns(address)

func (*Fortubev2Session) BorrowCheck

func (_Fortubev2 *Fortubev2Session) BorrowCheck(account common.Address, underlying common.Address, fToken common.Address, borrowAmount *big.Int) (*types.Transaction, error)

BorrowCheck is a paid mutator transaction binding the contract method 0x96a13b32.

Solidity: function borrowCheck(address account, address underlying, address fToken, uint256 borrowAmount) returns()

func (*Fortubev2Session) CalcExchangeUnit

func (_Fortubev2 *Fortubev2Session) CalcExchangeUnit(fToken common.Address) (*big.Int, error)

CalcExchangeUnit is a free data retrieval call binding the contract method 0x4d7ab633.

Solidity: function calcExchangeUnit(address fToken) view returns(uint256)

func (*Fortubev2Session) CalcMaxBorrowAmount

func (_Fortubev2 *Fortubev2Session) CalcMaxBorrowAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmount is a free data retrieval call binding the contract method 0xec63aaa3.

Solidity: function calcMaxBorrowAmount(address user, address token) view returns(uint256)

func (*Fortubev2Session) CalcMaxBorrowAmountWithRatio

func (_Fortubev2 *Fortubev2Session) CalcMaxBorrowAmountWithRatio(user common.Address, token common.Address) (*big.Int, error)

CalcMaxBorrowAmountWithRatio is a free data retrieval call binding the contract method 0x75861c6f.

Solidity: function calcMaxBorrowAmountWithRatio(address user, address token) view returns(uint256)

func (*Fortubev2Session) CalcMaxCashOutAmount

func (_Fortubev2 *Fortubev2Session) CalcMaxCashOutAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxCashOutAmount is a free data retrieval call binding the contract method 0xa9dc394c.

Solidity: function calcMaxCashOutAmount(address user, address token) view returns(uint256)

func (*Fortubev2Session) CalcMaxWithdrawAmount

func (_Fortubev2 *Fortubev2Session) CalcMaxWithdrawAmount(user common.Address, token common.Address) (*big.Int, error)

CalcMaxWithdrawAmount is a free data retrieval call binding the contract method 0x2b91acc0.

Solidity: function calcMaxWithdrawAmount(address user, address token) view returns(uint256)

func (*Fortubev2Session) CalcRewardAmount

func (_Fortubev2 *Fortubev2Session) CalcRewardAmount(gasSpend *big.Int, gasPrice *big.Int, _for common.Address) (*big.Int, error)

CalcRewardAmount is a free data retrieval call binding the contract method 0x2ddb60a3.

Solidity: function calcRewardAmount(uint256 gasSpend, uint256 gasPrice, address _for) view returns(uint256)

func (*Fortubev2Session) CalcRewardAmountByFactor

func (_Fortubev2 *Fortubev2Session) CalcRewardAmountByFactor(gasSpend *big.Int, gasPrice *big.Int, _for common.Address, factor *big.Int) (*big.Int, error)

CalcRewardAmountByFactor is a free data retrieval call binding the contract method 0x9ee30be8.

Solidity: function calcRewardAmountByFactor(uint256 gasSpend, uint256 gasPrice, address _for, uint256 factor) view returns(uint256)

func (*Fortubev2Session) CheckAccountsIn

func (_Fortubev2 *Fortubev2Session) CheckAccountsIn(account common.Address, fToken common.Address) (bool, error)

CheckAccountsIn is a free data retrieval call binding the contract method 0xa53caa16.

Solidity: function checkAccountsIn(address account, address fToken) view returns(bool)

func (*Fortubev2Session) ClaimAdministration

func (_Fortubev2 *Fortubev2Session) ClaimAdministration() (*types.Transaction, error)

ClaimAdministration is a paid mutator transaction binding the contract method 0xad2cb239.

Solidity: function claimAdministration() returns()

func (*Fortubev2Session) CloseFactor

func (_Fortubev2 *Fortubev2Session) CloseFactor() (*big.Int, error)

CloseFactor is a free data retrieval call binding the contract method 0x05308b9f.

Solidity: function closeFactor() view returns(uint256)

func (*Fortubev2Session) DivExp

func (_Fortubev2 *Fortubev2Session) DivExp(a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2Session) DivScalar

func (_Fortubev2 *Fortubev2Session) DivScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2Session) DivScalarByExp

func (_Fortubev2 *Fortubev2Session) DivScalarByExp(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2Session) DivScalarByExpTruncate

func (_Fortubev2 *Fortubev2Session) DivScalarByExpTruncate(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*Fortubev2Session) FetchAssetPrice

func (_Fortubev2 *Fortubev2Session) FetchAssetPrice(token common.Address) (*big.Int, bool, error)

FetchAssetPrice is a free data retrieval call binding the contract method 0xddec280e.

Solidity: function fetchAssetPrice(address token) view returns(uint256, bool)

func (*Fortubev2Session) GetAccountLiquidity

func (_Fortubev2 *Fortubev2Session) GetAccountLiquidity(account common.Address) (struct {
	Liquidity *big.Int
	Shortfall *big.Int
}, error)

GetAccountLiquidity is a free data retrieval call binding the contract method 0x5ec88c79.

Solidity: function getAccountLiquidity(address account) view returns(uint256 liquidity, uint256 shortfall)

func (*Fortubev2Session) GetAccountLiquidityExcludeDeposit

func (_Fortubev2 *Fortubev2Session) GetAccountLiquidityExcludeDeposit(account common.Address, token common.Address) (*big.Int, *big.Int, error)

GetAccountLiquidityExcludeDeposit is a free data retrieval call binding the contract method 0x70de3062.

Solidity: function getAccountLiquidityExcludeDeposit(address account, address token) view returns(uint256, uint256)

func (*Fortubev2Session) GetAllMarkets

func (_Fortubev2 *Fortubev2Session) GetAllMarkets() ([]common.Address, error)

GetAllMarkets is a free data retrieval call binding the contract method 0xb0772d0b.

Solidity: function getAllMarkets() view returns(address[])

func (*Fortubev2Session) GetAssetsIn

func (_Fortubev2 *Fortubev2Session) GetAssetsIn(account common.Address) ([]common.Address, error)

GetAssetsIn is a free data retrieval call binding the contract method 0xabfceffc.

Solidity: function getAssetsIn(address account) view returns(address[])

func (*Fortubev2Session) GetCashAfter

func (_Fortubev2 *Fortubev2Session) GetCashAfter(underlying common.Address, transferInAmount *big.Int) (*big.Int, error)

GetCashAfter is a free data retrieval call binding the contract method 0xa3f0fa20.

Solidity: function getCashAfter(address underlying, uint256 transferInAmount) view returns(uint256)

func (*Fortubev2Session) GetCashPrior

func (_Fortubev2 *Fortubev2Session) GetCashPrior(underlying common.Address) (*big.Int, error)

GetCashPrior is a free data retrieval call binding the contract method 0x9f77437b.

Solidity: function getCashPrior(address underlying) view returns(uint256)

func (*Fortubev2Session) GetDiv

func (_Fortubev2 *Fortubev2Session) GetDiv(num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2Session) GetExp

func (_Fortubev2 *Fortubev2Session) GetExp(num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*Fortubev2Session) GetFTokeAddress

func (_Fortubev2 *Fortubev2Session) GetFTokeAddress(underlying common.Address) (common.Address, error)

GetFTokeAddress is a free data retrieval call binding the contract method 0xfc1ce708.

Solidity: function getFTokeAddress(address underlying) view returns(address)

func (*Fortubev2Session) GetTotalDepositAndBorrow

func (_Fortubev2 *Fortubev2Session) GetTotalDepositAndBorrow(account common.Address) (*big.Int, *big.Int, error)

GetTotalDepositAndBorrow is a free data retrieval call binding the contract method 0x8e93aa73.

Solidity: function getTotalDepositAndBorrow(address account) view returns(uint256, uint256)

func (*Fortubev2Session) GetUserLiquidity

func (_Fortubev2 *Fortubev2Session) GetUserLiquidity(account common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidity is a free data retrieval call binding the contract method 0x87dac0cc.

Solidity: function getUserLiquidity(address account, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2Session) GetUserLiquidityExcludeToken

func (_Fortubev2 *Fortubev2Session) GetUserLiquidityExcludeToken(account common.Address, excludeToken common.Address, fTokenNow common.Address, withdrawTokens *big.Int, borrowAmount *big.Int) (*big.Int, *big.Int, error)

GetUserLiquidityExcludeToken is a free data retrieval call binding the contract method 0x8ac4ddc8.

Solidity: function getUserLiquidityExcludeToken(address account, address excludeToken, address fTokenNow, uint256 withdrawTokens, uint256 borrowAmount) view returns(uint256, uint256)

func (*Fortubev2Session) Initialize

func (_Fortubev2 *Fortubev2Session) Initialize(_mulsig common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _mulsig) returns()

func (*Fortubev2Session) IsFTokenValid

func (_Fortubev2 *Fortubev2Session) IsFTokenValid(fToken common.Address) (bool, error)

IsFTokenValid is a free data retrieval call binding the contract method 0x2a4d98cf.

Solidity: function isFTokenValid(address fToken) view returns(bool)

func (*Fortubev2Session) LiquidateBorrowCheck

func (_Fortubev2 *Fortubev2Session) LiquidateBorrowCheck(fTokenBorrowed common.Address, fTokenCollateral common.Address, borrower common.Address, liquidator common.Address, repayAmount *big.Int) (*types.Transaction, error)

LiquidateBorrowCheck is a paid mutator transaction binding the contract method 0x7cb9ac42.

Solidity: function liquidateBorrowCheck(address fTokenBorrowed, address fTokenCollateral, address borrower, address liquidator, uint256 repayAmount) returns()

func (*Fortubev2Session) LiquidateTokens

func (_Fortubev2 *Fortubev2Session) LiquidateTokens(fTokenBorrowed common.Address, fTokenCollateral common.Address, actualRepayAmount *big.Int) (*big.Int, error)

LiquidateTokens is a free data retrieval call binding the contract method 0x0c7fa6e0.

Solidity: function liquidateTokens(address fTokenBorrowed, address fTokenCollateral, uint256 actualRepayAmount) view returns(uint256)

func (*Fortubev2Session) Markets

func (_Fortubev2 *Fortubev2Session) Markets(arg0 common.Address) (struct {
	FTokenAddress        common.Address
	IsValid              bool
	CollateralAbility    *big.Int
	LiquidationIncentive *big.Int
}, error)

Markets is a free data retrieval call binding the contract method 0x8e8f294b.

Solidity: function markets(address ) view returns(address fTokenAddress, bool isValid, uint256 collateralAbility, uint256 liquidationIncentive)

func (*Fortubev2Session) MarketsContains

func (_Fortubev2 *Fortubev2Session) MarketsContains(fToken common.Address) (bool, error)

MarketsContains is a free data retrieval call binding the contract method 0x9deec7cb.

Solidity: function marketsContains(address fToken) view returns(bool)

func (*Fortubev2Session) MintCheck

func (_Fortubev2 *Fortubev2Session) MintCheck(underlying common.Address, minter common.Address) (*types.Transaction, error)

MintCheck is a paid mutator transaction binding the contract method 0x71fdbaf5.

Solidity: function mintCheck(address underlying, address minter) returns()

func (*Fortubev2Session) MulExp

func (_Fortubev2 *Fortubev2Session) MulExp(a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*Fortubev2Session) MulExp3

func (_Fortubev2 *Fortubev2Session) MulExp3(a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*Fortubev2Session) MulScalar

func (_Fortubev2 *Fortubev2Session) MulScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*Fortubev2Session) MulScalarTruncate

func (_Fortubev2 *Fortubev2Session) MulScalarTruncate(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*Fortubev2Session) MulScalarTruncateAddUInt

func (_Fortubev2 *Fortubev2Session) MulScalarTruncateAddUInt(a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*Fortubev2Session) Mulsig

func (_Fortubev2 *Fortubev2Session) Mulsig() (common.Address, error)

Mulsig is a free data retrieval call binding the contract method 0x1a435b55.

Solidity: function mulsig() view returns(address)

func (*Fortubev2Session) Oracle

func (_Fortubev2 *Fortubev2Session) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*Fortubev2Session) ProposeNewAdmin

func (_Fortubev2 *Fortubev2Session) ProposeNewAdmin(admin_ common.Address) (*types.Transaction, error)

ProposeNewAdmin is a paid mutator transaction binding the contract method 0xa6376746.

Solidity: function proposeNewAdmin(address admin_) returns()

func (*Fortubev2Session) ProposedAdmin

func (_Fortubev2 *Fortubev2Session) ProposedAdmin() (common.Address, error)

ProposedAdmin is a free data retrieval call binding the contract method 0x32f751ec.

Solidity: function proposedAdmin() view returns(address)

func (*Fortubev2Session) ReduceReserves

func (_Fortubev2 *Fortubev2Session) ReduceReserves(underlying common.Address, account common.Address, reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0xe47e65a3.

Solidity: function reduceReserves(address underlying, address account, uint256 reduceAmount) returns()

func (*Fortubev2Session) RepayCheck

func (_Fortubev2 *Fortubev2Session) RepayCheck(underlying common.Address) error

RepayCheck is a free data retrieval call binding the contract method 0x44f4b506.

Solidity: function repayCheck(address underlying) view returns()

func (*Fortubev2Session) RewardFactors

func (_Fortubev2 *Fortubev2Session) RewardFactors(arg0 *big.Int) (*big.Int, error)

RewardFactors is a free data retrieval call binding the contract method 0xdd4b8b7d.

Solidity: function rewardFactors(uint256 ) view returns(uint256)

func (*Fortubev2Session) RewardForByType

func (_Fortubev2 *Fortubev2Session) RewardForByType(account common.Address, gasSpend *big.Int, gasPrice *big.Int, rewardType *big.Int) (*types.Transaction, error)

RewardForByType is a paid mutator transaction binding the contract method 0x7f5cd256.

Solidity: function rewardForByType(address account, uint256 gasSpend, uint256 gasPrice, uint256 rewardType) returns()

func (*Fortubev2Session) RewardPool

func (_Fortubev2 *Fortubev2Session) RewardPool() (common.Address, error)

RewardPool is a free data retrieval call binding the contract method 0x66666aa9.

Solidity: function rewardPool() view returns(address)

func (*Fortubev2Session) SeizeCheck

func (_Fortubev2 *Fortubev2Session) SeizeCheck(cTokenCollateral common.Address, cTokenBorrowed common.Address) error

SeizeCheck is a free data retrieval call binding the contract method 0x7ceb4c97.

Solidity: function seizeCheck(address cTokenCollateral, address cTokenBorrowed) view returns()

func (*Fortubev2Session) SetBankEntryAddress

func (_Fortubev2 *Fortubev2Session) SetBankEntryAddress(_newBank common.Address) (*types.Transaction, error)

SetBankEntryAddress is a paid mutator transaction binding the contract method 0x9945b8b0.

Solidity: function setBankEntryAddress(address _newBank) returns()

func (*Fortubev2Session) SetCloseFactor

func (_Fortubev2 *Fortubev2Session) SetCloseFactor(_closeFactor *big.Int) (*types.Transaction, error)

SetCloseFactor is a paid mutator transaction binding the contract method 0x12348e96.

Solidity: function setCloseFactor(uint256 _closeFactor) returns()

func (*Fortubev2Session) SetCollateralAbility

func (_Fortubev2 *Fortubev2Session) SetCollateralAbility(underlying common.Address, newCollateralAbility *big.Int) (*types.Transaction, error)

SetCollateralAbility is a paid mutator transaction binding the contract method 0x4b973e9a.

Solidity: function _setCollateralAbility(address underlying, uint256 newCollateralAbility) returns()

func (*Fortubev2Session) SetLiquidationIncentive

func (_Fortubev2 *Fortubev2Session) SetLiquidationIncentive(underlying common.Address, _liquidationIncentive *big.Int) (*types.Transaction, error)

SetLiquidationIncentive is a paid mutator transaction binding the contract method 0x903e679c.

Solidity: function _setLiquidationIncentive(address underlying, uint256 _liquidationIncentive) returns()

func (*Fortubev2Session) SetOracle

func (_Fortubev2 *Fortubev2Session) SetOracle(_oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*Fortubev2Session) SetRewardFactorByType

func (_Fortubev2 *Fortubev2Session) SetRewardFactorByType(rewaradType *big.Int, factor *big.Int) (*types.Transaction, error)

SetRewardFactorByType is a paid mutator transaction binding the contract method 0xd3a32bb0.

Solidity: function setRewardFactorByType(uint256 rewaradType, uint256 factor) returns()

func (*Fortubev2Session) SetRewardPool

func (_Fortubev2 *Fortubev2Session) SetRewardPool(_rewardPool common.Address) (*types.Transaction, error)

SetRewardPool is a paid mutator transaction binding the contract method 0x78238c37.

Solidity: function setRewardPool(address _rewardPool) returns()

func (*Fortubev2Session) SetTheForceToken

func (_Fortubev2 *Fortubev2Session) SetTheForceToken(_theForceToken common.Address) (*types.Transaction, error)

SetTheForceToken is a paid mutator transaction binding the contract method 0x04edc6fb.

Solidity: function setTheForceToken(address _theForceToken) returns()

func (*Fortubev2Session) SetTransferEthGasCost

func (_Fortubev2 *Fortubev2Session) SetTransferEthGasCost(_transferEthGasCost *big.Int) (*types.Transaction, error)

SetTransferEthGasCost is a paid mutator transaction binding the contract method 0xc0627004.

Solidity: function setTransferEthGasCost(uint256 _transferEthGasCost) returns()

func (*Fortubev2Session) SubExp

func (_Fortubev2 *Fortubev2Session) SubExp(a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*Fortubev2Session) SupportMarket

func (_Fortubev2 *Fortubev2Session) SupportMarket(fToken common.Address, _collateralAbility *big.Int, _liquidationIncentive *big.Int) (*types.Transaction, error)

SupportMarket is a paid mutator transaction binding the contract method 0x3cfa4d04.

Solidity: function _supportMarket(address fToken, uint256 _collateralAbility, uint256 _liquidationIncentive) returns()

func (*Fortubev2Session) TheForceToken

func (_Fortubev2 *Fortubev2Session) TheForceToken() (common.Address, error)

TheForceToken is a free data retrieval call binding the contract method 0x96a614d2.

Solidity: function theForceToken() view returns(address)

func (*Fortubev2Session) TokenDecimals

func (_Fortubev2 *Fortubev2Session) TokenDecimals(token common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address token) view returns(uint256)

func (*Fortubev2Session) TransferCheck

func (_Fortubev2 *Fortubev2Session) TransferCheck(fToken common.Address, src common.Address, dst common.Address, transferTokens *big.Int) (*types.Transaction, error)

TransferCheck is a paid mutator transaction binding the contract method 0xd38120c9.

Solidity: function transferCheck(address fToken, address src, address dst, uint256 transferTokens) returns()

func (*Fortubev2Session) TransferEthGasCost

func (_Fortubev2 *Fortubev2Session) TransferEthGasCost() (*big.Int, error)

TransferEthGasCost is a free data retrieval call binding the contract method 0x4f9c751e.

Solidity: function transferEthGasCost() view returns(uint256)

func (*Fortubev2Session) TransferIn

func (_Fortubev2 *Fortubev2Session) TransferIn(account common.Address, underlying common.Address, amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe4652f49.

Solidity: function transferIn(address account, address underlying, uint256 amount) payable returns()

func (*Fortubev2Session) TransferToUser

func (_Fortubev2 *Fortubev2Session) TransferToUser(underlying common.Address, account common.Address, amount *big.Int) (*types.Transaction, error)

TransferToUser is a paid mutator transaction binding the contract method 0xfa93b2a5.

Solidity: function transferToUser(address underlying, address account, uint256 amount) returns()

func (*Fortubev2Session) Truncate

func (_Fortubev2 *Fortubev2Session) Truncate(exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*Fortubev2Session) WithdrawCheck

func (_Fortubev2 *Fortubev2Session) WithdrawCheck(fToken common.Address, withdrawer common.Address, withdrawTokens *big.Int) (*big.Int, error)

WithdrawCheck is a free data retrieval call binding the contract method 0x57986129.

Solidity: function withdrawCheck(address fToken, address withdrawer, uint256 withdrawTokens) view returns(uint256)

type Fortubev2Transactor

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

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

func NewFortubev2Transactor

func NewFortubev2Transactor(address common.Address, transactor bind.ContractTransactor) (*Fortubev2Transactor, error)

NewFortubev2Transactor creates a new write-only instance of Fortubev2, bound to a specific deployed contract.

func (*Fortubev2Transactor) AddReserves

func (_Fortubev2 *Fortubev2Transactor) AddReserves(opts *bind.TransactOpts, underlying common.Address, addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0xfc99bd9a.

Solidity: function addReserves(address underlying, uint256 addAmount) payable returns()

func (*Fortubev2Transactor) BorrowCheck

func (_Fortubev2 *Fortubev2Transactor) BorrowCheck(opts *bind.TransactOpts, account common.Address, underlying common.Address, fToken common.Address, borrowAmount *big.Int) (*types.Transaction, error)

BorrowCheck is a paid mutator transaction binding the contract method 0x96a13b32.

Solidity: function borrowCheck(address account, address underlying, address fToken, uint256 borrowAmount) returns()

func (*Fortubev2Transactor) ClaimAdministration

func (_Fortubev2 *Fortubev2Transactor) ClaimAdministration(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimAdministration is a paid mutator transaction binding the contract method 0xad2cb239.

Solidity: function claimAdministration() returns()

func (*Fortubev2Transactor) Initialize

func (_Fortubev2 *Fortubev2Transactor) Initialize(opts *bind.TransactOpts, _mulsig common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _mulsig) returns()

func (*Fortubev2Transactor) LiquidateBorrowCheck

func (_Fortubev2 *Fortubev2Transactor) LiquidateBorrowCheck(opts *bind.TransactOpts, fTokenBorrowed common.Address, fTokenCollateral common.Address, borrower common.Address, liquidator common.Address, repayAmount *big.Int) (*types.Transaction, error)

LiquidateBorrowCheck is a paid mutator transaction binding the contract method 0x7cb9ac42.

Solidity: function liquidateBorrowCheck(address fTokenBorrowed, address fTokenCollateral, address borrower, address liquidator, uint256 repayAmount) returns()

func (*Fortubev2Transactor) MintCheck

func (_Fortubev2 *Fortubev2Transactor) MintCheck(opts *bind.TransactOpts, underlying common.Address, minter common.Address) (*types.Transaction, error)

MintCheck is a paid mutator transaction binding the contract method 0x71fdbaf5.

Solidity: function mintCheck(address underlying, address minter) returns()

func (*Fortubev2Transactor) ProposeNewAdmin

func (_Fortubev2 *Fortubev2Transactor) ProposeNewAdmin(opts *bind.TransactOpts, admin_ common.Address) (*types.Transaction, error)

ProposeNewAdmin is a paid mutator transaction binding the contract method 0xa6376746.

Solidity: function proposeNewAdmin(address admin_) returns()

func (*Fortubev2Transactor) ReduceReserves

func (_Fortubev2 *Fortubev2Transactor) ReduceReserves(opts *bind.TransactOpts, underlying common.Address, account common.Address, reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0xe47e65a3.

Solidity: function reduceReserves(address underlying, address account, uint256 reduceAmount) returns()

func (*Fortubev2Transactor) RewardForByType

func (_Fortubev2 *Fortubev2Transactor) RewardForByType(opts *bind.TransactOpts, account common.Address, gasSpend *big.Int, gasPrice *big.Int, rewardType *big.Int) (*types.Transaction, error)

RewardForByType is a paid mutator transaction binding the contract method 0x7f5cd256.

Solidity: function rewardForByType(address account, uint256 gasSpend, uint256 gasPrice, uint256 rewardType) returns()

func (*Fortubev2Transactor) SetBankEntryAddress

func (_Fortubev2 *Fortubev2Transactor) SetBankEntryAddress(opts *bind.TransactOpts, _newBank common.Address) (*types.Transaction, error)

SetBankEntryAddress is a paid mutator transaction binding the contract method 0x9945b8b0.

Solidity: function setBankEntryAddress(address _newBank) returns()

func (*Fortubev2Transactor) SetCloseFactor

func (_Fortubev2 *Fortubev2Transactor) SetCloseFactor(opts *bind.TransactOpts, _closeFactor *big.Int) (*types.Transaction, error)

SetCloseFactor is a paid mutator transaction binding the contract method 0x12348e96.

Solidity: function setCloseFactor(uint256 _closeFactor) returns()

func (*Fortubev2Transactor) SetCollateralAbility

func (_Fortubev2 *Fortubev2Transactor) SetCollateralAbility(opts *bind.TransactOpts, underlying common.Address, newCollateralAbility *big.Int) (*types.Transaction, error)

SetCollateralAbility is a paid mutator transaction binding the contract method 0x4b973e9a.

Solidity: function _setCollateralAbility(address underlying, uint256 newCollateralAbility) returns()

func (*Fortubev2Transactor) SetLiquidationIncentive

func (_Fortubev2 *Fortubev2Transactor) SetLiquidationIncentive(opts *bind.TransactOpts, underlying common.Address, _liquidationIncentive *big.Int) (*types.Transaction, error)

SetLiquidationIncentive is a paid mutator transaction binding the contract method 0x903e679c.

Solidity: function _setLiquidationIncentive(address underlying, uint256 _liquidationIncentive) returns()

func (*Fortubev2Transactor) SetOracle

func (_Fortubev2 *Fortubev2Transactor) SetOracle(opts *bind.TransactOpts, _oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*Fortubev2Transactor) SetRewardFactorByType

func (_Fortubev2 *Fortubev2Transactor) SetRewardFactorByType(opts *bind.TransactOpts, rewaradType *big.Int, factor *big.Int) (*types.Transaction, error)

SetRewardFactorByType is a paid mutator transaction binding the contract method 0xd3a32bb0.

Solidity: function setRewardFactorByType(uint256 rewaradType, uint256 factor) returns()

func (*Fortubev2Transactor) SetRewardPool

func (_Fortubev2 *Fortubev2Transactor) SetRewardPool(opts *bind.TransactOpts, _rewardPool common.Address) (*types.Transaction, error)

SetRewardPool is a paid mutator transaction binding the contract method 0x78238c37.

Solidity: function setRewardPool(address _rewardPool) returns()

func (*Fortubev2Transactor) SetTheForceToken

func (_Fortubev2 *Fortubev2Transactor) SetTheForceToken(opts *bind.TransactOpts, _theForceToken common.Address) (*types.Transaction, error)

SetTheForceToken is a paid mutator transaction binding the contract method 0x04edc6fb.

Solidity: function setTheForceToken(address _theForceToken) returns()

func (*Fortubev2Transactor) SetTransferEthGasCost

func (_Fortubev2 *Fortubev2Transactor) SetTransferEthGasCost(opts *bind.TransactOpts, _transferEthGasCost *big.Int) (*types.Transaction, error)

SetTransferEthGasCost is a paid mutator transaction binding the contract method 0xc0627004.

Solidity: function setTransferEthGasCost(uint256 _transferEthGasCost) returns()

func (*Fortubev2Transactor) SupportMarket

func (_Fortubev2 *Fortubev2Transactor) SupportMarket(opts *bind.TransactOpts, fToken common.Address, _collateralAbility *big.Int, _liquidationIncentive *big.Int) (*types.Transaction, error)

SupportMarket is a paid mutator transaction binding the contract method 0x3cfa4d04.

Solidity: function _supportMarket(address fToken, uint256 _collateralAbility, uint256 _liquidationIncentive) returns()

func (*Fortubev2Transactor) TransferCheck

func (_Fortubev2 *Fortubev2Transactor) TransferCheck(opts *bind.TransactOpts, fToken common.Address, src common.Address, dst common.Address, transferTokens *big.Int) (*types.Transaction, error)

TransferCheck is a paid mutator transaction binding the contract method 0xd38120c9.

Solidity: function transferCheck(address fToken, address src, address dst, uint256 transferTokens) returns()

func (*Fortubev2Transactor) TransferIn

func (_Fortubev2 *Fortubev2Transactor) TransferIn(opts *bind.TransactOpts, account common.Address, underlying common.Address, amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe4652f49.

Solidity: function transferIn(address account, address underlying, uint256 amount) payable returns()

func (*Fortubev2Transactor) TransferToUser

func (_Fortubev2 *Fortubev2Transactor) TransferToUser(opts *bind.TransactOpts, underlying common.Address, account common.Address, amount *big.Int) (*types.Transaction, error)

TransferToUser is a paid mutator transaction binding the contract method 0xfa93b2a5.

Solidity: function transferToUser(address underlying, address account, uint256 amount) returns()

type Fortubev2TransactorRaw

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

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

func (*Fortubev2TransactorRaw) Transact

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

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

func (*Fortubev2TransactorRaw) Transfer

func (_Fortubev2 *Fortubev2TransactorRaw) 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 Fortubev2TransactorSession

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

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

func (*Fortubev2TransactorSession) AddReserves

func (_Fortubev2 *Fortubev2TransactorSession) AddReserves(underlying common.Address, addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0xfc99bd9a.

Solidity: function addReserves(address underlying, uint256 addAmount) payable returns()

func (*Fortubev2TransactorSession) BorrowCheck

func (_Fortubev2 *Fortubev2TransactorSession) BorrowCheck(account common.Address, underlying common.Address, fToken common.Address, borrowAmount *big.Int) (*types.Transaction, error)

BorrowCheck is a paid mutator transaction binding the contract method 0x96a13b32.

Solidity: function borrowCheck(address account, address underlying, address fToken, uint256 borrowAmount) returns()

func (*Fortubev2TransactorSession) ClaimAdministration

func (_Fortubev2 *Fortubev2TransactorSession) ClaimAdministration() (*types.Transaction, error)

ClaimAdministration is a paid mutator transaction binding the contract method 0xad2cb239.

Solidity: function claimAdministration() returns()

func (*Fortubev2TransactorSession) Initialize

func (_Fortubev2 *Fortubev2TransactorSession) Initialize(_mulsig common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _mulsig) returns()

func (*Fortubev2TransactorSession) LiquidateBorrowCheck

func (_Fortubev2 *Fortubev2TransactorSession) LiquidateBorrowCheck(fTokenBorrowed common.Address, fTokenCollateral common.Address, borrower common.Address, liquidator common.Address, repayAmount *big.Int) (*types.Transaction, error)

LiquidateBorrowCheck is a paid mutator transaction binding the contract method 0x7cb9ac42.

Solidity: function liquidateBorrowCheck(address fTokenBorrowed, address fTokenCollateral, address borrower, address liquidator, uint256 repayAmount) returns()

func (*Fortubev2TransactorSession) MintCheck

func (_Fortubev2 *Fortubev2TransactorSession) MintCheck(underlying common.Address, minter common.Address) (*types.Transaction, error)

MintCheck is a paid mutator transaction binding the contract method 0x71fdbaf5.

Solidity: function mintCheck(address underlying, address minter) returns()

func (*Fortubev2TransactorSession) ProposeNewAdmin

func (_Fortubev2 *Fortubev2TransactorSession) ProposeNewAdmin(admin_ common.Address) (*types.Transaction, error)

ProposeNewAdmin is a paid mutator transaction binding the contract method 0xa6376746.

Solidity: function proposeNewAdmin(address admin_) returns()

func (*Fortubev2TransactorSession) ReduceReserves

func (_Fortubev2 *Fortubev2TransactorSession) ReduceReserves(underlying common.Address, account common.Address, reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0xe47e65a3.

Solidity: function reduceReserves(address underlying, address account, uint256 reduceAmount) returns()

func (*Fortubev2TransactorSession) RewardForByType

func (_Fortubev2 *Fortubev2TransactorSession) RewardForByType(account common.Address, gasSpend *big.Int, gasPrice *big.Int, rewardType *big.Int) (*types.Transaction, error)

RewardForByType is a paid mutator transaction binding the contract method 0x7f5cd256.

Solidity: function rewardForByType(address account, uint256 gasSpend, uint256 gasPrice, uint256 rewardType) returns()

func (*Fortubev2TransactorSession) SetBankEntryAddress

func (_Fortubev2 *Fortubev2TransactorSession) SetBankEntryAddress(_newBank common.Address) (*types.Transaction, error)

SetBankEntryAddress is a paid mutator transaction binding the contract method 0x9945b8b0.

Solidity: function setBankEntryAddress(address _newBank) returns()

func (*Fortubev2TransactorSession) SetCloseFactor

func (_Fortubev2 *Fortubev2TransactorSession) SetCloseFactor(_closeFactor *big.Int) (*types.Transaction, error)

SetCloseFactor is a paid mutator transaction binding the contract method 0x12348e96.

Solidity: function setCloseFactor(uint256 _closeFactor) returns()

func (*Fortubev2TransactorSession) SetCollateralAbility

func (_Fortubev2 *Fortubev2TransactorSession) SetCollateralAbility(underlying common.Address, newCollateralAbility *big.Int) (*types.Transaction, error)

SetCollateralAbility is a paid mutator transaction binding the contract method 0x4b973e9a.

Solidity: function _setCollateralAbility(address underlying, uint256 newCollateralAbility) returns()

func (*Fortubev2TransactorSession) SetLiquidationIncentive

func (_Fortubev2 *Fortubev2TransactorSession) SetLiquidationIncentive(underlying common.Address, _liquidationIncentive *big.Int) (*types.Transaction, error)

SetLiquidationIncentive is a paid mutator transaction binding the contract method 0x903e679c.

Solidity: function _setLiquidationIncentive(address underlying, uint256 _liquidationIncentive) returns()

func (*Fortubev2TransactorSession) SetOracle

func (_Fortubev2 *Fortubev2TransactorSession) SetOracle(_oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*Fortubev2TransactorSession) SetRewardFactorByType

func (_Fortubev2 *Fortubev2TransactorSession) SetRewardFactorByType(rewaradType *big.Int, factor *big.Int) (*types.Transaction, error)

SetRewardFactorByType is a paid mutator transaction binding the contract method 0xd3a32bb0.

Solidity: function setRewardFactorByType(uint256 rewaradType, uint256 factor) returns()

func (*Fortubev2TransactorSession) SetRewardPool

func (_Fortubev2 *Fortubev2TransactorSession) SetRewardPool(_rewardPool common.Address) (*types.Transaction, error)

SetRewardPool is a paid mutator transaction binding the contract method 0x78238c37.

Solidity: function setRewardPool(address _rewardPool) returns()

func (*Fortubev2TransactorSession) SetTheForceToken

func (_Fortubev2 *Fortubev2TransactorSession) SetTheForceToken(_theForceToken common.Address) (*types.Transaction, error)

SetTheForceToken is a paid mutator transaction binding the contract method 0x04edc6fb.

Solidity: function setTheForceToken(address _theForceToken) returns()

func (*Fortubev2TransactorSession) SetTransferEthGasCost

func (_Fortubev2 *Fortubev2TransactorSession) SetTransferEthGasCost(_transferEthGasCost *big.Int) (*types.Transaction, error)

SetTransferEthGasCost is a paid mutator transaction binding the contract method 0xc0627004.

Solidity: function setTransferEthGasCost(uint256 _transferEthGasCost) returns()

func (*Fortubev2TransactorSession) SupportMarket

func (_Fortubev2 *Fortubev2TransactorSession) SupportMarket(fToken common.Address, _collateralAbility *big.Int, _liquidationIncentive *big.Int) (*types.Transaction, error)

SupportMarket is a paid mutator transaction binding the contract method 0x3cfa4d04.

Solidity: function _supportMarket(address fToken, uint256 _collateralAbility, uint256 _liquidationIncentive) returns()

func (*Fortubev2TransactorSession) TransferCheck

func (_Fortubev2 *Fortubev2TransactorSession) TransferCheck(fToken common.Address, src common.Address, dst common.Address, transferTokens *big.Int) (*types.Transaction, error)

TransferCheck is a paid mutator transaction binding the contract method 0xd38120c9.

Solidity: function transferCheck(address fToken, address src, address dst, uint256 transferTokens) returns()

func (*Fortubev2TransactorSession) TransferIn

func (_Fortubev2 *Fortubev2TransactorSession) TransferIn(account common.Address, underlying common.Address, amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe4652f49.

Solidity: function transferIn(address account, address underlying, uint256 amount) payable returns()

func (*Fortubev2TransactorSession) TransferToUser

func (_Fortubev2 *Fortubev2TransactorSession) TransferToUser(underlying common.Address, account common.Address, amount *big.Int) (*types.Transaction, error)

TransferToUser is a paid mutator transaction binding the contract method 0xfa93b2a5.

Solidity: function transferToUser(address underlying, address account, uint256 amount) returns()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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