aaveDefaultReserveInterestRateStrategyV2

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AaveDefaultReserveInterestRateStrategyV2ABI = AaveDefaultReserveInterestRateStrategyV2MetaData.ABI

AaveDefaultReserveInterestRateStrategyV2ABI is the input ABI used to generate the binding from. Deprecated: Use AaveDefaultReserveInterestRateStrategyV2MetaData.ABI instead.

View Source
var AaveDefaultReserveInterestRateStrategyV2MetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"optimalUsageRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"baseVariableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableRateSlope1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableRateSlope2\",\"type\":\"uint256\"}],\"name\":\"RateDataUpdate\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESSES_PROVIDER\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_BORROW_RATE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_OPTIMAL_POINT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_OPTIMAL_POINT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"availableLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDebt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentVariableBorrowRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentLiquidityRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowUsageRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyUsageRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableLiquidityPlusDebt\",\"type\":\"uint256\"}],\"internalType\":\"structIInterestRateStrategyV2.CalcInterestRatesLocalVars\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"calculateInterestRates\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getBaseVariableBorrowRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getInterestRateData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"optimalUsageRatio\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"baseVariableBorrowRate\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"variableRateSlope1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"variableRateSlope2\",\"type\":\"uint32\"}],\"internalType\":\"structIInterestRateStrategyV2.InterestRateData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getInterestRateDataBps\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"optimalUsageRatio\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"baseVariableBorrowRate\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"variableRateSlope1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"variableRateSlope2\",\"type\":\"uint32\"}],\"internalType\":\"structIInterestRateStrategyV2.InterestRateData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getMaxVariableBorrowRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getOptimalUsageRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getVariableRateSlope1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"}],\"name\":\"getVariableRateSlope2\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AaveDefaultReserveInterestRateStrategyV2MetaData contains all meta data concerning the AaveDefaultReserveInterestRateStrategyV2 contract.

Functions

This section is empty.

Types

type AaveDefaultReserveInterestRateStrategyV2

type AaveDefaultReserveInterestRateStrategyV2 struct {
	AaveDefaultReserveInterestRateStrategyV2Caller     // Read-only binding to the contract
	AaveDefaultReserveInterestRateStrategyV2Transactor // Write-only binding to the contract
	AaveDefaultReserveInterestRateStrategyV2Filterer   // Log filterer for contract events
}

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

func NewAaveDefaultReserveInterestRateStrategyV2

func NewAaveDefaultReserveInterestRateStrategyV2(address common.Address, backend bind.ContractBackend) (*AaveDefaultReserveInterestRateStrategyV2, error)

NewAaveDefaultReserveInterestRateStrategyV2 creates a new instance of AaveDefaultReserveInterestRateStrategyV2, bound to a specific deployed contract.

type AaveDefaultReserveInterestRateStrategyV2Caller

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

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

func NewAaveDefaultReserveInterestRateStrategyV2Caller

func NewAaveDefaultReserveInterestRateStrategyV2Caller(address common.Address, caller bind.ContractCaller) (*AaveDefaultReserveInterestRateStrategyV2Caller, error)

NewAaveDefaultReserveInterestRateStrategyV2Caller creates a new read-only instance of AaveDefaultReserveInterestRateStrategyV2, bound to a specific deployed contract.

func (*AaveDefaultReserveInterestRateStrategyV2Caller) ADDRESSESPROVIDER

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) ADDRESSESPROVIDER(opts *bind.CallOpts) (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) CalculateInterestRates

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) CalculateInterestRates(opts *bind.CallOpts, params IInterestRateStrategyV2CalcInterestRatesLocalVars) (*big.Int, *big.Int, *big.Int, error)

CalculateInterestRates is a free data retrieval call binding the contract method 0xbd1b0ced.

Solidity: function calculateInterestRates((uint256,uint256,uint256,uint256,uint256,uint256,uint256) params) view returns(uint256, uint256, uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetBaseVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetBaseVariableBorrowRate(opts *bind.CallOpts, reserve common.Address) (*big.Int, error)

GetBaseVariableBorrowRate is a free data retrieval call binding the contract method 0xcca22ea1.

Solidity: function getBaseVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetInterestRateData

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetInterestRateData(opts *bind.CallOpts, reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateData is a free data retrieval call binding the contract method 0x131e889c.

Solidity: function getInterestRateData(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetInterestRateDataBps

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetInterestRateDataBps(opts *bind.CallOpts, reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateDataBps is a free data retrieval call binding the contract method 0xc79ce42e.

Solidity: function getInterestRateDataBps(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetMaxVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetMaxVariableBorrowRate(opts *bind.CallOpts, reserve common.Address) (*big.Int, error)

GetMaxVariableBorrowRate is a free data retrieval call binding the contract method 0x6a00178e.

Solidity: function getMaxVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetOptimalUsageRatio

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetOptimalUsageRatio(opts *bind.CallOpts, reserve common.Address) (*big.Int, error)

GetOptimalUsageRatio is a free data retrieval call binding the contract method 0xaa33f063.

Solidity: function getOptimalUsageRatio(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetVariableRateSlope1

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetVariableRateSlope1(opts *bind.CallOpts, reserve common.Address) (*big.Int, error)

GetVariableRateSlope1 is a free data retrieval call binding the contract method 0x5b651bae.

Solidity: function getVariableRateSlope1(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) GetVariableRateSlope2

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) GetVariableRateSlope2(opts *bind.CallOpts, reserve common.Address) (*big.Int, error)

GetVariableRateSlope2 is a free data retrieval call binding the contract method 0x8f4b0d5d.

Solidity: function getVariableRateSlope2(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) MAXBORROWRATE

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) MAXBORROWRATE(opts *bind.CallOpts) (*big.Int, error)

MAXBORROWRATE is a free data retrieval call binding the contract method 0x7a0c5ebf.

Solidity: function MAX_BORROW_RATE() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) MAXOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) MAXOPTIMALPOINT(opts *bind.CallOpts) (*big.Int, error)

MAXOPTIMALPOINT is a free data retrieval call binding the contract method 0x7a24bd7e.

Solidity: function MAX_OPTIMAL_POINT() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Caller) MINOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Caller) MINOPTIMALPOINT(opts *bind.CallOpts) (*big.Int, error)

MINOPTIMALPOINT is a free data retrieval call binding the contract method 0xf7e0fe67.

Solidity: function MIN_OPTIMAL_POINT() view returns(uint256)

type AaveDefaultReserveInterestRateStrategyV2CallerRaw

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

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

func (*AaveDefaultReserveInterestRateStrategyV2CallerRaw) Call

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerRaw) 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 AaveDefaultReserveInterestRateStrategyV2CallerSession

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

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

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) ADDRESSESPROVIDER

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) ADDRESSESPROVIDER() (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) CalculateInterestRates

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) CalculateInterestRates(params IInterestRateStrategyV2CalcInterestRatesLocalVars) (*big.Int, *big.Int, *big.Int, error)

CalculateInterestRates is a free data retrieval call binding the contract method 0xbd1b0ced.

Solidity: function calculateInterestRates((uint256,uint256,uint256,uint256,uint256,uint256,uint256) params) view returns(uint256, uint256, uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetBaseVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetBaseVariableBorrowRate(reserve common.Address) (*big.Int, error)

GetBaseVariableBorrowRate is a free data retrieval call binding the contract method 0xcca22ea1.

Solidity: function getBaseVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetInterestRateData

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetInterestRateData(reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateData is a free data retrieval call binding the contract method 0x131e889c.

Solidity: function getInterestRateData(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetInterestRateDataBps

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetInterestRateDataBps(reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateDataBps is a free data retrieval call binding the contract method 0xc79ce42e.

Solidity: function getInterestRateDataBps(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetMaxVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetMaxVariableBorrowRate(reserve common.Address) (*big.Int, error)

GetMaxVariableBorrowRate is a free data retrieval call binding the contract method 0x6a00178e.

Solidity: function getMaxVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetOptimalUsageRatio

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetOptimalUsageRatio(reserve common.Address) (*big.Int, error)

GetOptimalUsageRatio is a free data retrieval call binding the contract method 0xaa33f063.

Solidity: function getOptimalUsageRatio(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetVariableRateSlope1

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetVariableRateSlope1(reserve common.Address) (*big.Int, error)

GetVariableRateSlope1 is a free data retrieval call binding the contract method 0x5b651bae.

Solidity: function getVariableRateSlope1(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) GetVariableRateSlope2

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) GetVariableRateSlope2(reserve common.Address) (*big.Int, error)

GetVariableRateSlope2 is a free data retrieval call binding the contract method 0x8f4b0d5d.

Solidity: function getVariableRateSlope2(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) MAXBORROWRATE

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) MAXBORROWRATE() (*big.Int, error)

MAXBORROWRATE is a free data retrieval call binding the contract method 0x7a0c5ebf.

Solidity: function MAX_BORROW_RATE() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) MAXOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) MAXOPTIMALPOINT() (*big.Int, error)

MAXOPTIMALPOINT is a free data retrieval call binding the contract method 0x7a24bd7e.

Solidity: function MAX_OPTIMAL_POINT() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2CallerSession) MINOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2CallerSession) MINOPTIMALPOINT() (*big.Int, error)

MINOPTIMALPOINT is a free data retrieval call binding the contract method 0xf7e0fe67.

Solidity: function MIN_OPTIMAL_POINT() view returns(uint256)

type AaveDefaultReserveInterestRateStrategyV2Filterer

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

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

func NewAaveDefaultReserveInterestRateStrategyV2Filterer

func NewAaveDefaultReserveInterestRateStrategyV2Filterer(address common.Address, filterer bind.ContractFilterer) (*AaveDefaultReserveInterestRateStrategyV2Filterer, error)

NewAaveDefaultReserveInterestRateStrategyV2Filterer creates a new log filterer instance of AaveDefaultReserveInterestRateStrategyV2, bound to a specific deployed contract.

func (*AaveDefaultReserveInterestRateStrategyV2Filterer) FilterRateDataUpdate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Filterer) FilterRateDataUpdate(opts *bind.FilterOpts, reserve []common.Address) (*AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator, error)

FilterRateDataUpdate is a free log retrieval operation binding the contract event 0x5d123bea2036a4052274206f59d99350b9741e17da56ffae335d809b25ee0942.

Solidity: event RateDataUpdate(address indexed reserve, uint256 optimalUsageRatio, uint256 baseVariableBorrowRate, uint256 variableRateSlope1, uint256 variableRateSlope2)

func (*AaveDefaultReserveInterestRateStrategyV2Filterer) ParseRateDataUpdate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Filterer) ParseRateDataUpdate(log types.Log) (*AaveDefaultReserveInterestRateStrategyV2RateDataUpdate, error)

ParseRateDataUpdate is a log parse operation binding the contract event 0x5d123bea2036a4052274206f59d99350b9741e17da56ffae335d809b25ee0942.

Solidity: event RateDataUpdate(address indexed reserve, uint256 optimalUsageRatio, uint256 baseVariableBorrowRate, uint256 variableRateSlope1, uint256 variableRateSlope2)

func (*AaveDefaultReserveInterestRateStrategyV2Filterer) WatchRateDataUpdate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Filterer) WatchRateDataUpdate(opts *bind.WatchOpts, sink chan<- *AaveDefaultReserveInterestRateStrategyV2RateDataUpdate, reserve []common.Address) (event.Subscription, error)

WatchRateDataUpdate is a free log subscription operation binding the contract event 0x5d123bea2036a4052274206f59d99350b9741e17da56ffae335d809b25ee0942.

Solidity: event RateDataUpdate(address indexed reserve, uint256 optimalUsageRatio, uint256 baseVariableBorrowRate, uint256 variableRateSlope1, uint256 variableRateSlope2)

type AaveDefaultReserveInterestRateStrategyV2RateDataUpdate

type AaveDefaultReserveInterestRateStrategyV2RateDataUpdate struct {
	Reserve                common.Address
	OptimalUsageRatio      *big.Int
	BaseVariableBorrowRate *big.Int
	VariableRateSlope1     *big.Int
	VariableRateSlope2     *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

AaveDefaultReserveInterestRateStrategyV2RateDataUpdate represents a RateDataUpdate event raised by the AaveDefaultReserveInterestRateStrategyV2 contract.

type AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator

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

AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator is returned from FilterRateDataUpdate and is used to iterate over the raw logs and unpacked data for RateDataUpdate events raised by the AaveDefaultReserveInterestRateStrategyV2 contract.

func (*AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator) Close

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

func (*AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AaveDefaultReserveInterestRateStrategyV2RateDataUpdateIterator) 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 AaveDefaultReserveInterestRateStrategyV2Raw

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

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

func (*AaveDefaultReserveInterestRateStrategyV2Raw) Call

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Raw) 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 (*AaveDefaultReserveInterestRateStrategyV2Raw) Transact

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

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

func (*AaveDefaultReserveInterestRateStrategyV2Raw) Transfer

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Raw) 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 AaveDefaultReserveInterestRateStrategyV2Session

type AaveDefaultReserveInterestRateStrategyV2Session struct {
	Contract     *AaveDefaultReserveInterestRateStrategyV2 // 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
}

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

func (*AaveDefaultReserveInterestRateStrategyV2Session) ADDRESSESPROVIDER

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) ADDRESSESPROVIDER() (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*AaveDefaultReserveInterestRateStrategyV2Session) CalculateInterestRates

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) CalculateInterestRates(params IInterestRateStrategyV2CalcInterestRatesLocalVars) (*big.Int, *big.Int, *big.Int, error)

CalculateInterestRates is a free data retrieval call binding the contract method 0xbd1b0ced.

Solidity: function calculateInterestRates((uint256,uint256,uint256,uint256,uint256,uint256,uint256) params) view returns(uint256, uint256, uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetBaseVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetBaseVariableBorrowRate(reserve common.Address) (*big.Int, error)

GetBaseVariableBorrowRate is a free data retrieval call binding the contract method 0xcca22ea1.

Solidity: function getBaseVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetInterestRateData

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetInterestRateData(reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateData is a free data retrieval call binding the contract method 0x131e889c.

Solidity: function getInterestRateData(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetInterestRateDataBps

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetInterestRateDataBps(reserve common.Address) (IInterestRateStrategyV2InterestRateData, error)

GetInterestRateDataBps is a free data retrieval call binding the contract method 0xc79ce42e.

Solidity: function getInterestRateDataBps(address reserve) view returns((uint16,uint32,uint32,uint32))

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetMaxVariableBorrowRate

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetMaxVariableBorrowRate(reserve common.Address) (*big.Int, error)

GetMaxVariableBorrowRate is a free data retrieval call binding the contract method 0x6a00178e.

Solidity: function getMaxVariableBorrowRate(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetOptimalUsageRatio

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetOptimalUsageRatio(reserve common.Address) (*big.Int, error)

GetOptimalUsageRatio is a free data retrieval call binding the contract method 0xaa33f063.

Solidity: function getOptimalUsageRatio(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetVariableRateSlope1

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetVariableRateSlope1(reserve common.Address) (*big.Int, error)

GetVariableRateSlope1 is a free data retrieval call binding the contract method 0x5b651bae.

Solidity: function getVariableRateSlope1(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) GetVariableRateSlope2

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) GetVariableRateSlope2(reserve common.Address) (*big.Int, error)

GetVariableRateSlope2 is a free data retrieval call binding the contract method 0x8f4b0d5d.

Solidity: function getVariableRateSlope2(address reserve) view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) MAXBORROWRATE

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) MAXBORROWRATE() (*big.Int, error)

MAXBORROWRATE is a free data retrieval call binding the contract method 0x7a0c5ebf.

Solidity: function MAX_BORROW_RATE() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) MAXOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) MAXOPTIMALPOINT() (*big.Int, error)

MAXOPTIMALPOINT is a free data retrieval call binding the contract method 0x7a24bd7e.

Solidity: function MAX_OPTIMAL_POINT() view returns(uint256)

func (*AaveDefaultReserveInterestRateStrategyV2Session) MINOPTIMALPOINT

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2Session) MINOPTIMALPOINT() (*big.Int, error)

MINOPTIMALPOINT is a free data retrieval call binding the contract method 0xf7e0fe67.

Solidity: function MIN_OPTIMAL_POINT() view returns(uint256)

type AaveDefaultReserveInterestRateStrategyV2Transactor

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

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

func NewAaveDefaultReserveInterestRateStrategyV2Transactor

func NewAaveDefaultReserveInterestRateStrategyV2Transactor(address common.Address, transactor bind.ContractTransactor) (*AaveDefaultReserveInterestRateStrategyV2Transactor, error)

NewAaveDefaultReserveInterestRateStrategyV2Transactor creates a new write-only instance of AaveDefaultReserveInterestRateStrategyV2, bound to a specific deployed contract.

type AaveDefaultReserveInterestRateStrategyV2TransactorRaw

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

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

func (*AaveDefaultReserveInterestRateStrategyV2TransactorRaw) Transact

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

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

func (*AaveDefaultReserveInterestRateStrategyV2TransactorRaw) Transfer

func (_AaveDefaultReserveInterestRateStrategyV2 *AaveDefaultReserveInterestRateStrategyV2TransactorRaw) 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 AaveDefaultReserveInterestRateStrategyV2TransactorSession

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

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

type IInterestRateStrategyV2CalcInterestRatesLocalVars

type IInterestRateStrategyV2CalcInterestRatesLocalVars struct {
	AvailableLiquidity         *big.Int
	TotalDebt                  *big.Int
	CurrentVariableBorrowRate  *big.Int
	CurrentLiquidityRate       *big.Int
	BorrowUsageRatio           *big.Int
	SupplyUsageRatio           *big.Int
	AvailableLiquidityPlusDebt *big.Int
}

IInterestRateStrategyV2CalcInterestRatesLocalVars is an auto generated low-level Go binding around an user-defined struct.

type IInterestRateStrategyV2InterestRateData

type IInterestRateStrategyV2InterestRateData struct {
	OptimalUsageRatio      uint16
	BaseVariableBorrowRate uint32
	VariableRateSlope1     uint32
	VariableRateSlope2     uint32
}

IInterestRateStrategyV2InterestRateData is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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