pool

package
v1.4.478 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoolABI = PoolMetaData.ABI

PoolABI is the input ABI used to generate the binding from. Deprecated: Use PoolMetaData.ABI instead.

View Source
var PoolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"AssetAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousDev\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newDev\",\"type\":\"address\"}],\"name\":\"DevUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousHaircut\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newHaircut\",\"type\":\"uint256\"}],\"name\":\"HaircutRateUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOracle\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOracle\",\"type\":\"address\"}],\"name\":\"OracleUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousPriceDeviation\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newPriceDeviation\",\"type\":\"uint256\"}],\"name\":\"PriceDeviationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousRetentionRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRetentionRatio\",\"type\":\"uint256\"}],\"name\":\"RetentionRatioUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousK\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newK\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousN\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newN\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousC1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newC1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousXThreshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newXThreshold\",\"type\":\"uint256\"}],\"name\":\"SlippageParamsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"addAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"assetOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getC1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDev\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getEquilibriumCoverageRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHaircutRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMaxPriceDeviation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPriceOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRetentionRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSlippageParamK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSlippageParamN\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenAddresses\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getXThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wantedToken\",\"type\":\"address\"}],\"name\":\"quoteMaxInitialAssetWithdrawable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxInitialAssetAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"}],\"name\":\"quotePotentialSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"potentialOutcome\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"haircut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"name\":\"quotePotentialWithdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enoughCash\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wantedToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"name\":\"quotePotentialWithdrawFromOtherAsset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"recoverUserFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"key\",\"type\":\"address\"}],\"name\":\"removeAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dev\",\"type\":\"address\"}],\"name\":\"setDev\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"haircutRate_\",\"type\":\"uint256\"}],\"name\":\"setHaircutRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxPriceDeviation_\",\"type\":\"uint256\"}],\"name\":\"setMaxPriceDeviation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"priceOracle\",\"type\":\"address\"}],\"name\":\"setPriceOracle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"retentionRatio_\",\"type\":\"uint256\"}],\"name\":\"setRetentionRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"k_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"n_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"c1_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"xThreshold_\",\"type\":\"uint256\"}],\"name\":\"setSlippageParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumToAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"actualToAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"haircut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wantedToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"withdrawFromOtherAsset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PoolMetaData contains all meta data concerning the Pool contract.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	PoolCaller     // Read-only binding to the contract
	PoolTransactor // Write-only binding to the contract
	PoolFilterer   // Log filterer for contract events
}

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

func NewPool

func NewPool(address common.Address, backend bind.ContractBackend) (*Pool, error)

NewPool creates a new instance of Pool, bound to a specific deployed contract.

type PoolAssetAdded

type PoolAssetAdded struct {
	Token common.Address
	Asset common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

PoolAssetAdded represents a AssetAdded event raised by the Pool contract.

type PoolAssetAddedIterator

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

PoolAssetAddedIterator is returned from FilterAssetAdded and is used to iterate over the raw logs and unpacked data for AssetAdded events raised by the Pool contract.

func (*PoolAssetAddedIterator) Close

func (it *PoolAssetAddedIterator) Close() error

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

func (*PoolAssetAddedIterator) Error

func (it *PoolAssetAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolAssetAddedIterator) Next

func (it *PoolAssetAddedIterator) Next() bool

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 PoolCaller

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

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

func NewPoolCaller

func NewPoolCaller(address common.Address, caller bind.ContractCaller) (*PoolCaller, error)

NewPoolCaller creates a new read-only instance of Pool, bound to a specific deployed contract.

func (*PoolCaller) AssetOf

func (_Pool *PoolCaller) AssetOf(opts *bind.CallOpts, token common.Address) (common.Address, error)

AssetOf is a free data retrieval call binding the contract method 0x71f96211.

Solidity: function assetOf(address token) view returns(address)

func (*PoolCaller) GetC1

func (_Pool *PoolCaller) GetC1(opts *bind.CallOpts) (*big.Int, error)

GetC1 is a free data retrieval call binding the contract method 0xa76f54d2.

Solidity: function getC1() view returns(uint256)

func (*PoolCaller) GetDev

func (_Pool *PoolCaller) GetDev(opts *bind.CallOpts) (common.Address, error)

GetDev is a free data retrieval call binding the contract method 0x09bb9267.

Solidity: function getDev() view returns(address)

func (*PoolCaller) GetEquilibriumCoverageRatio

func (_Pool *PoolCaller) GetEquilibriumCoverageRatio(opts *bind.CallOpts) (*big.Int, error)

GetEquilibriumCoverageRatio is a free data retrieval call binding the contract method 0x05f7bc26.

Solidity: function getEquilibriumCoverageRatio() view returns(uint256)

func (*PoolCaller) GetHaircutRate

func (_Pool *PoolCaller) GetHaircutRate(opts *bind.CallOpts) (*big.Int, error)

GetHaircutRate is a free data retrieval call binding the contract method 0x7fdd5a8e.

Solidity: function getHaircutRate() view returns(uint256)

func (*PoolCaller) GetMaxPriceDeviation

func (_Pool *PoolCaller) GetMaxPriceDeviation(opts *bind.CallOpts) (*big.Int, error)

GetMaxPriceDeviation is a free data retrieval call binding the contract method 0xddcbc516.

Solidity: function getMaxPriceDeviation() view returns(uint256)

func (*PoolCaller) GetPriceOracle

func (_Pool *PoolCaller) GetPriceOracle(opts *bind.CallOpts) (common.Address, error)

GetPriceOracle is a free data retrieval call binding the contract method 0xfca513a8.

Solidity: function getPriceOracle() view returns(address)

func (*PoolCaller) GetRetentionRatio

func (_Pool *PoolCaller) GetRetentionRatio(opts *bind.CallOpts) (*big.Int, error)

GetRetentionRatio is a free data retrieval call binding the contract method 0xcb733d7a.

Solidity: function getRetentionRatio() view returns(uint256)

func (*PoolCaller) GetSlippageParamK

func (_Pool *PoolCaller) GetSlippageParamK(opts *bind.CallOpts) (*big.Int, error)

GetSlippageParamK is a free data retrieval call binding the contract method 0x55af008a.

Solidity: function getSlippageParamK() view returns(uint256)

func (*PoolCaller) GetSlippageParamN

func (_Pool *PoolCaller) GetSlippageParamN(opts *bind.CallOpts) (*big.Int, error)

GetSlippageParamN is a free data retrieval call binding the contract method 0x7727c655.

Solidity: function getSlippageParamN() view returns(uint256)

func (*PoolCaller) GetTokenAddresses

func (_Pool *PoolCaller) GetTokenAddresses(opts *bind.CallOpts) ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

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

func (*PoolCaller) GetXThreshold

func (_Pool *PoolCaller) GetXThreshold(opts *bind.CallOpts) (*big.Int, error)

GetXThreshold is a free data retrieval call binding the contract method 0x7a1c36d1.

Solidity: function getXThreshold() view returns(uint256)

func (*PoolCaller) Owner

func (_Pool *PoolCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PoolCaller) Paused

func (_Pool *PoolCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PoolCaller) QuoteMaxInitialAssetWithdrawable

func (_Pool *PoolCaller) QuoteMaxInitialAssetWithdrawable(opts *bind.CallOpts, initialToken common.Address, wantedToken common.Address) (*big.Int, error)

QuoteMaxInitialAssetWithdrawable is a free data retrieval call binding the contract method 0x2a803b5e.

Solidity: function quoteMaxInitialAssetWithdrawable(address initialToken, address wantedToken) view returns(uint256 maxInitialAssetAmount)

func (*PoolCaller) QuotePotentialSwap

func (_Pool *PoolCaller) QuotePotentialSwap(opts *bind.CallOpts, fromToken common.Address, toToken common.Address, fromAmount *big.Int) (struct {
	PotentialOutcome *big.Int
	Haircut          *big.Int
}, error)

QuotePotentialSwap is a free data retrieval call binding the contract method 0x43c2e2f5.

Solidity: function quotePotentialSwap(address fromToken, address toToken, uint256 fromAmount) view returns(uint256 potentialOutcome, uint256 haircut)

func (*PoolCaller) QuotePotentialWithdraw

func (_Pool *PoolCaller) QuotePotentialWithdraw(opts *bind.CallOpts, token common.Address, liquidity *big.Int) (struct {
	Amount     *big.Int
	Fee        *big.Int
	EnoughCash bool
}, error)

QuotePotentialWithdraw is a free data retrieval call binding the contract method 0x907448ed.

Solidity: function quotePotentialWithdraw(address token, uint256 liquidity) view returns(uint256 amount, uint256 fee, bool enoughCash)

func (*PoolCaller) QuotePotentialWithdrawFromOtherAsset

func (_Pool *PoolCaller) QuotePotentialWithdrawFromOtherAsset(opts *bind.CallOpts, initialToken common.Address, wantedToken common.Address, liquidity *big.Int) (struct {
	Amount *big.Int
	Fee    *big.Int
}, error)

QuotePotentialWithdrawFromOtherAsset is a free data retrieval call binding the contract method 0xa4275ceb.

Solidity: function quotePotentialWithdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity) view returns(uint256 amount, uint256 fee)

type PoolCallerRaw

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

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

func (*PoolCallerRaw) Call

func (_Pool *PoolCallerRaw) 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 PoolCallerSession

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

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

func (*PoolCallerSession) AssetOf

func (_Pool *PoolCallerSession) AssetOf(token common.Address) (common.Address, error)

AssetOf is a free data retrieval call binding the contract method 0x71f96211.

Solidity: function assetOf(address token) view returns(address)

func (*PoolCallerSession) GetC1

func (_Pool *PoolCallerSession) GetC1() (*big.Int, error)

GetC1 is a free data retrieval call binding the contract method 0xa76f54d2.

Solidity: function getC1() view returns(uint256)

func (*PoolCallerSession) GetDev

func (_Pool *PoolCallerSession) GetDev() (common.Address, error)

GetDev is a free data retrieval call binding the contract method 0x09bb9267.

Solidity: function getDev() view returns(address)

func (*PoolCallerSession) GetEquilibriumCoverageRatio

func (_Pool *PoolCallerSession) GetEquilibriumCoverageRatio() (*big.Int, error)

GetEquilibriumCoverageRatio is a free data retrieval call binding the contract method 0x05f7bc26.

Solidity: function getEquilibriumCoverageRatio() view returns(uint256)

func (*PoolCallerSession) GetHaircutRate

func (_Pool *PoolCallerSession) GetHaircutRate() (*big.Int, error)

GetHaircutRate is a free data retrieval call binding the contract method 0x7fdd5a8e.

Solidity: function getHaircutRate() view returns(uint256)

func (*PoolCallerSession) GetMaxPriceDeviation

func (_Pool *PoolCallerSession) GetMaxPriceDeviation() (*big.Int, error)

GetMaxPriceDeviation is a free data retrieval call binding the contract method 0xddcbc516.

Solidity: function getMaxPriceDeviation() view returns(uint256)

func (*PoolCallerSession) GetPriceOracle

func (_Pool *PoolCallerSession) GetPriceOracle() (common.Address, error)

GetPriceOracle is a free data retrieval call binding the contract method 0xfca513a8.

Solidity: function getPriceOracle() view returns(address)

func (*PoolCallerSession) GetRetentionRatio

func (_Pool *PoolCallerSession) GetRetentionRatio() (*big.Int, error)

GetRetentionRatio is a free data retrieval call binding the contract method 0xcb733d7a.

Solidity: function getRetentionRatio() view returns(uint256)

func (*PoolCallerSession) GetSlippageParamK

func (_Pool *PoolCallerSession) GetSlippageParamK() (*big.Int, error)

GetSlippageParamK is a free data retrieval call binding the contract method 0x55af008a.

Solidity: function getSlippageParamK() view returns(uint256)

func (*PoolCallerSession) GetSlippageParamN

func (_Pool *PoolCallerSession) GetSlippageParamN() (*big.Int, error)

GetSlippageParamN is a free data retrieval call binding the contract method 0x7727c655.

Solidity: function getSlippageParamN() view returns(uint256)

func (*PoolCallerSession) GetTokenAddresses

func (_Pool *PoolCallerSession) GetTokenAddresses() ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

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

func (*PoolCallerSession) GetXThreshold

func (_Pool *PoolCallerSession) GetXThreshold() (*big.Int, error)

GetXThreshold is a free data retrieval call binding the contract method 0x7a1c36d1.

Solidity: function getXThreshold() view returns(uint256)

func (*PoolCallerSession) Owner

func (_Pool *PoolCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PoolCallerSession) Paused

func (_Pool *PoolCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PoolCallerSession) QuoteMaxInitialAssetWithdrawable

func (_Pool *PoolCallerSession) QuoteMaxInitialAssetWithdrawable(initialToken common.Address, wantedToken common.Address) (*big.Int, error)

QuoteMaxInitialAssetWithdrawable is a free data retrieval call binding the contract method 0x2a803b5e.

Solidity: function quoteMaxInitialAssetWithdrawable(address initialToken, address wantedToken) view returns(uint256 maxInitialAssetAmount)

func (*PoolCallerSession) QuotePotentialSwap

func (_Pool *PoolCallerSession) QuotePotentialSwap(fromToken common.Address, toToken common.Address, fromAmount *big.Int) (struct {
	PotentialOutcome *big.Int
	Haircut          *big.Int
}, error)

QuotePotentialSwap is a free data retrieval call binding the contract method 0x43c2e2f5.

Solidity: function quotePotentialSwap(address fromToken, address toToken, uint256 fromAmount) view returns(uint256 potentialOutcome, uint256 haircut)

func (*PoolCallerSession) QuotePotentialWithdraw

func (_Pool *PoolCallerSession) QuotePotentialWithdraw(token common.Address, liquidity *big.Int) (struct {
	Amount     *big.Int
	Fee        *big.Int
	EnoughCash bool
}, error)

QuotePotentialWithdraw is a free data retrieval call binding the contract method 0x907448ed.

Solidity: function quotePotentialWithdraw(address token, uint256 liquidity) view returns(uint256 amount, uint256 fee, bool enoughCash)

func (*PoolCallerSession) QuotePotentialWithdrawFromOtherAsset

func (_Pool *PoolCallerSession) QuotePotentialWithdrawFromOtherAsset(initialToken common.Address, wantedToken common.Address, liquidity *big.Int) (struct {
	Amount *big.Int
	Fee    *big.Int
}, error)

QuotePotentialWithdrawFromOtherAsset is a free data retrieval call binding the contract method 0xa4275ceb.

Solidity: function quotePotentialWithdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity) view returns(uint256 amount, uint256 fee)

type PoolDeposit

type PoolDeposit struct {
	Sender    common.Address
	Token     common.Address
	Amount    *big.Int
	Liquidity *big.Int
	To        common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

PoolDeposit represents a Deposit event raised by the Pool contract.

type PoolDepositIterator

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

PoolDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Pool contract.

func (*PoolDepositIterator) Close

func (it *PoolDepositIterator) Close() error

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

func (*PoolDepositIterator) Error

func (it *PoolDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolDepositIterator) Next

func (it *PoolDepositIterator) Next() bool

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 PoolDevUpdated

type PoolDevUpdated struct {
	PreviousDev common.Address
	NewDev      common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

PoolDevUpdated represents a DevUpdated event raised by the Pool contract.

type PoolDevUpdatedIterator

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

PoolDevUpdatedIterator is returned from FilterDevUpdated and is used to iterate over the raw logs and unpacked data for DevUpdated events raised by the Pool contract.

func (*PoolDevUpdatedIterator) Close

func (it *PoolDevUpdatedIterator) Close() error

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

func (*PoolDevUpdatedIterator) Error

func (it *PoolDevUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolDevUpdatedIterator) Next

func (it *PoolDevUpdatedIterator) Next() bool

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 PoolFilterer

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

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

func NewPoolFilterer

func NewPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*PoolFilterer, error)

NewPoolFilterer creates a new log filterer instance of Pool, bound to a specific deployed contract.

func (*PoolFilterer) FilterAssetAdded

func (_Pool *PoolFilterer) FilterAssetAdded(opts *bind.FilterOpts, token []common.Address, asset []common.Address) (*PoolAssetAddedIterator, error)

FilterAssetAdded is a free log retrieval operation binding the contract event 0x0bb5715f0f217c2fe9a0c877ea87d474380c641102f3440ee2a4c8b9d9790918.

Solidity: event AssetAdded(address indexed token, address indexed asset)

func (*PoolFilterer) FilterDeposit

func (_Pool *PoolFilterer) FilterDeposit(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PoolDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xf5dd9317b9e63ac316ce44acc85f670b54b339cfa3e9076e1dd55065b922314b.

Solidity: event Deposit(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

func (*PoolFilterer) FilterDevUpdated

func (_Pool *PoolFilterer) FilterDevUpdated(opts *bind.FilterOpts, previousDev []common.Address, newDev []common.Address) (*PoolDevUpdatedIterator, error)

FilterDevUpdated is a free log retrieval operation binding the contract event 0xaa37e6ba252409ccb1daf704a52d3f2fb61265b2f480371d6041193f1cf16ac2.

Solidity: event DevUpdated(address indexed previousDev, address indexed newDev)

func (*PoolFilterer) FilterHaircutRateUpdated

func (_Pool *PoolFilterer) FilterHaircutRateUpdated(opts *bind.FilterOpts) (*PoolHaircutRateUpdatedIterator, error)

FilterHaircutRateUpdated is a free log retrieval operation binding the contract event 0xbb59363309f944f517c724d17a8f3c89d62efc951e2d7768f7a9d7f307bcad7f.

Solidity: event HaircutRateUpdated(uint256 previousHaircut, uint256 newHaircut)

func (*PoolFilterer) FilterOracleUpdated

func (_Pool *PoolFilterer) FilterOracleUpdated(opts *bind.FilterOpts, previousOracle []common.Address, newOracle []common.Address) (*PoolOracleUpdatedIterator, error)

FilterOracleUpdated is a free log retrieval operation binding the contract event 0x078c3b417dadf69374a59793b829c52001247130433427049317bde56607b1b7.

Solidity: event OracleUpdated(address indexed previousOracle, address indexed newOracle)

func (*PoolFilterer) FilterOwnershipTransferred

func (_Pool *PoolFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PoolOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PoolFilterer) FilterPaused

func (_Pool *PoolFilterer) FilterPaused(opts *bind.FilterOpts) (*PoolPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*PoolFilterer) FilterPriceDeviationUpdated

func (_Pool *PoolFilterer) FilterPriceDeviationUpdated(opts *bind.FilterOpts) (*PoolPriceDeviationUpdatedIterator, error)

FilterPriceDeviationUpdated is a free log retrieval operation binding the contract event 0x193a6231bcc3d7de036c920f05884fe0d8e1dad662793abd049d33b4d83a45cd.

Solidity: event PriceDeviationUpdated(uint256 previousPriceDeviation, uint256 newPriceDeviation)

func (*PoolFilterer) FilterRetentionRatioUpdated

func (_Pool *PoolFilterer) FilterRetentionRatioUpdated(opts *bind.FilterOpts) (*PoolRetentionRatioUpdatedIterator, error)

FilterRetentionRatioUpdated is a free log retrieval operation binding the contract event 0xbc341359e3658046c114365fc4bf0a6bfe11e53d72faf8ac4fe19b53aec6b3f9.

Solidity: event RetentionRatioUpdated(uint256 previousRetentionRatio, uint256 newRetentionRatio)

func (*PoolFilterer) FilterSlippageParamsUpdated

func (_Pool *PoolFilterer) FilterSlippageParamsUpdated(opts *bind.FilterOpts) (*PoolSlippageParamsUpdatedIterator, error)

FilterSlippageParamsUpdated is a free log retrieval operation binding the contract event 0x4f79edc127ae2274ce8320073956fad0b9e727d4ed275b2d3665a75edaffb7a3.

Solidity: event SlippageParamsUpdated(uint256 previousK, uint256 newK, uint256 previousN, uint256 newN, uint256 previousC1, uint256 newC1, uint256 previousXThreshold, uint256 newXThreshold)

func (*PoolFilterer) FilterSwap

func (_Pool *PoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PoolSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1.

Solidity: event Swap(address indexed sender, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, address indexed to)

func (*PoolFilterer) FilterUnpaused

func (_Pool *PoolFilterer) FilterUnpaused(opts *bind.FilterOpts) (*PoolUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*PoolFilterer) FilterWithdraw

func (_Pool *PoolFilterer) FilterWithdraw(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PoolWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xfb80d861da582b723be2d19507ce3e03851820c464abea89156ec77e089b1ad9.

Solidity: event Withdraw(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

func (*PoolFilterer) ParseAssetAdded

func (_Pool *PoolFilterer) ParseAssetAdded(log types.Log) (*PoolAssetAdded, error)

ParseAssetAdded is a log parse operation binding the contract event 0x0bb5715f0f217c2fe9a0c877ea87d474380c641102f3440ee2a4c8b9d9790918.

Solidity: event AssetAdded(address indexed token, address indexed asset)

func (*PoolFilterer) ParseDeposit

func (_Pool *PoolFilterer) ParseDeposit(log types.Log) (*PoolDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xf5dd9317b9e63ac316ce44acc85f670b54b339cfa3e9076e1dd55065b922314b.

Solidity: event Deposit(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

func (*PoolFilterer) ParseDevUpdated

func (_Pool *PoolFilterer) ParseDevUpdated(log types.Log) (*PoolDevUpdated, error)

ParseDevUpdated is a log parse operation binding the contract event 0xaa37e6ba252409ccb1daf704a52d3f2fb61265b2f480371d6041193f1cf16ac2.

Solidity: event DevUpdated(address indexed previousDev, address indexed newDev)

func (*PoolFilterer) ParseHaircutRateUpdated

func (_Pool *PoolFilterer) ParseHaircutRateUpdated(log types.Log) (*PoolHaircutRateUpdated, error)

ParseHaircutRateUpdated is a log parse operation binding the contract event 0xbb59363309f944f517c724d17a8f3c89d62efc951e2d7768f7a9d7f307bcad7f.

Solidity: event HaircutRateUpdated(uint256 previousHaircut, uint256 newHaircut)

func (*PoolFilterer) ParseOracleUpdated

func (_Pool *PoolFilterer) ParseOracleUpdated(log types.Log) (*PoolOracleUpdated, error)

ParseOracleUpdated is a log parse operation binding the contract event 0x078c3b417dadf69374a59793b829c52001247130433427049317bde56607b1b7.

Solidity: event OracleUpdated(address indexed previousOracle, address indexed newOracle)

func (*PoolFilterer) ParseOwnershipTransferred

func (_Pool *PoolFilterer) ParseOwnershipTransferred(log types.Log) (*PoolOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PoolFilterer) ParsePaused

func (_Pool *PoolFilterer) ParsePaused(log types.Log) (*PoolPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*PoolFilterer) ParsePriceDeviationUpdated

func (_Pool *PoolFilterer) ParsePriceDeviationUpdated(log types.Log) (*PoolPriceDeviationUpdated, error)

ParsePriceDeviationUpdated is a log parse operation binding the contract event 0x193a6231bcc3d7de036c920f05884fe0d8e1dad662793abd049d33b4d83a45cd.

Solidity: event PriceDeviationUpdated(uint256 previousPriceDeviation, uint256 newPriceDeviation)

func (*PoolFilterer) ParseRetentionRatioUpdated

func (_Pool *PoolFilterer) ParseRetentionRatioUpdated(log types.Log) (*PoolRetentionRatioUpdated, error)

ParseRetentionRatioUpdated is a log parse operation binding the contract event 0xbc341359e3658046c114365fc4bf0a6bfe11e53d72faf8ac4fe19b53aec6b3f9.

Solidity: event RetentionRatioUpdated(uint256 previousRetentionRatio, uint256 newRetentionRatio)

func (*PoolFilterer) ParseSlippageParamsUpdated

func (_Pool *PoolFilterer) ParseSlippageParamsUpdated(log types.Log) (*PoolSlippageParamsUpdated, error)

ParseSlippageParamsUpdated is a log parse operation binding the contract event 0x4f79edc127ae2274ce8320073956fad0b9e727d4ed275b2d3665a75edaffb7a3.

Solidity: event SlippageParamsUpdated(uint256 previousK, uint256 newK, uint256 previousN, uint256 newN, uint256 previousC1, uint256 newC1, uint256 previousXThreshold, uint256 newXThreshold)

func (*PoolFilterer) ParseSwap

func (_Pool *PoolFilterer) ParseSwap(log types.Log) (*PoolSwap, error)

ParseSwap is a log parse operation binding the contract event 0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1.

Solidity: event Swap(address indexed sender, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, address indexed to)

func (*PoolFilterer) ParseUnpaused

func (_Pool *PoolFilterer) ParseUnpaused(log types.Log) (*PoolUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*PoolFilterer) ParseWithdraw

func (_Pool *PoolFilterer) ParseWithdraw(log types.Log) (*PoolWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0xfb80d861da582b723be2d19507ce3e03851820c464abea89156ec77e089b1ad9.

Solidity: event Withdraw(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

func (*PoolFilterer) WatchAssetAdded

func (_Pool *PoolFilterer) WatchAssetAdded(opts *bind.WatchOpts, sink chan<- *PoolAssetAdded, token []common.Address, asset []common.Address) (event.Subscription, error)

WatchAssetAdded is a free log subscription operation binding the contract event 0x0bb5715f0f217c2fe9a0c877ea87d474380c641102f3440ee2a4c8b9d9790918.

Solidity: event AssetAdded(address indexed token, address indexed asset)

func (*PoolFilterer) WatchDeposit

func (_Pool *PoolFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *PoolDeposit, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xf5dd9317b9e63ac316ce44acc85f670b54b339cfa3e9076e1dd55065b922314b.

Solidity: event Deposit(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

func (*PoolFilterer) WatchDevUpdated

func (_Pool *PoolFilterer) WatchDevUpdated(opts *bind.WatchOpts, sink chan<- *PoolDevUpdated, previousDev []common.Address, newDev []common.Address) (event.Subscription, error)

WatchDevUpdated is a free log subscription operation binding the contract event 0xaa37e6ba252409ccb1daf704a52d3f2fb61265b2f480371d6041193f1cf16ac2.

Solidity: event DevUpdated(address indexed previousDev, address indexed newDev)

func (*PoolFilterer) WatchHaircutRateUpdated

func (_Pool *PoolFilterer) WatchHaircutRateUpdated(opts *bind.WatchOpts, sink chan<- *PoolHaircutRateUpdated) (event.Subscription, error)

WatchHaircutRateUpdated is a free log subscription operation binding the contract event 0xbb59363309f944f517c724d17a8f3c89d62efc951e2d7768f7a9d7f307bcad7f.

Solidity: event HaircutRateUpdated(uint256 previousHaircut, uint256 newHaircut)

func (*PoolFilterer) WatchOracleUpdated

func (_Pool *PoolFilterer) WatchOracleUpdated(opts *bind.WatchOpts, sink chan<- *PoolOracleUpdated, previousOracle []common.Address, newOracle []common.Address) (event.Subscription, error)

WatchOracleUpdated is a free log subscription operation binding the contract event 0x078c3b417dadf69374a59793b829c52001247130433427049317bde56607b1b7.

Solidity: event OracleUpdated(address indexed previousOracle, address indexed newOracle)

func (*PoolFilterer) WatchOwnershipTransferred

func (_Pool *PoolFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PoolOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PoolFilterer) WatchPaused

func (_Pool *PoolFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *PoolPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*PoolFilterer) WatchPriceDeviationUpdated

func (_Pool *PoolFilterer) WatchPriceDeviationUpdated(opts *bind.WatchOpts, sink chan<- *PoolPriceDeviationUpdated) (event.Subscription, error)

WatchPriceDeviationUpdated is a free log subscription operation binding the contract event 0x193a6231bcc3d7de036c920f05884fe0d8e1dad662793abd049d33b4d83a45cd.

Solidity: event PriceDeviationUpdated(uint256 previousPriceDeviation, uint256 newPriceDeviation)

func (*PoolFilterer) WatchRetentionRatioUpdated

func (_Pool *PoolFilterer) WatchRetentionRatioUpdated(opts *bind.WatchOpts, sink chan<- *PoolRetentionRatioUpdated) (event.Subscription, error)

WatchRetentionRatioUpdated is a free log subscription operation binding the contract event 0xbc341359e3658046c114365fc4bf0a6bfe11e53d72faf8ac4fe19b53aec6b3f9.

Solidity: event RetentionRatioUpdated(uint256 previousRetentionRatio, uint256 newRetentionRatio)

func (*PoolFilterer) WatchSlippageParamsUpdated

func (_Pool *PoolFilterer) WatchSlippageParamsUpdated(opts *bind.WatchOpts, sink chan<- *PoolSlippageParamsUpdated) (event.Subscription, error)

WatchSlippageParamsUpdated is a free log subscription operation binding the contract event 0x4f79edc127ae2274ce8320073956fad0b9e727d4ed275b2d3665a75edaffb7a3.

Solidity: event SlippageParamsUpdated(uint256 previousK, uint256 newK, uint256 previousN, uint256 newN, uint256 previousC1, uint256 newC1, uint256 previousXThreshold, uint256 newXThreshold)

func (*PoolFilterer) WatchSwap

func (_Pool *PoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PoolSwap, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1.

Solidity: event Swap(address indexed sender, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, address indexed to)

func (*PoolFilterer) WatchUnpaused

func (_Pool *PoolFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *PoolUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*PoolFilterer) WatchWithdraw

func (_Pool *PoolFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *PoolWithdraw, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0xfb80d861da582b723be2d19507ce3e03851820c464abea89156ec77e089b1ad9.

Solidity: event Withdraw(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)

type PoolHaircutRateUpdated

type PoolHaircutRateUpdated struct {
	PreviousHaircut *big.Int
	NewHaircut      *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

PoolHaircutRateUpdated represents a HaircutRateUpdated event raised by the Pool contract.

type PoolHaircutRateUpdatedIterator

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

PoolHaircutRateUpdatedIterator is returned from FilterHaircutRateUpdated and is used to iterate over the raw logs and unpacked data for HaircutRateUpdated events raised by the Pool contract.

func (*PoolHaircutRateUpdatedIterator) Close

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

func (*PoolHaircutRateUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolHaircutRateUpdatedIterator) 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 PoolOracleUpdated

type PoolOracleUpdated struct {
	PreviousOracle common.Address
	NewOracle      common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

PoolOracleUpdated represents a OracleUpdated event raised by the Pool contract.

type PoolOracleUpdatedIterator

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

PoolOracleUpdatedIterator is returned from FilterOracleUpdated and is used to iterate over the raw logs and unpacked data for OracleUpdated events raised by the Pool contract.

func (*PoolOracleUpdatedIterator) Close

func (it *PoolOracleUpdatedIterator) Close() error

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

func (*PoolOracleUpdatedIterator) Error

func (it *PoolOracleUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolOracleUpdatedIterator) Next

func (it *PoolOracleUpdatedIterator) Next() bool

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 PoolOwnershipTransferred

type PoolOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PoolOwnershipTransferred represents a OwnershipTransferred event raised by the Pool contract.

type PoolOwnershipTransferredIterator

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

PoolOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Pool contract.

func (*PoolOwnershipTransferredIterator) Close

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

func (*PoolOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolOwnershipTransferredIterator) 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 PoolPaused

type PoolPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

PoolPaused represents a Paused event raised by the Pool contract.

type PoolPausedIterator

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

PoolPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Pool contract.

func (*PoolPausedIterator) Close

func (it *PoolPausedIterator) Close() error

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

func (*PoolPausedIterator) Error

func (it *PoolPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolPausedIterator) Next

func (it *PoolPausedIterator) Next() bool

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 PoolPriceDeviationUpdated

type PoolPriceDeviationUpdated struct {
	PreviousPriceDeviation *big.Int
	NewPriceDeviation      *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

PoolPriceDeviationUpdated represents a PriceDeviationUpdated event raised by the Pool contract.

type PoolPriceDeviationUpdatedIterator

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

PoolPriceDeviationUpdatedIterator is returned from FilterPriceDeviationUpdated and is used to iterate over the raw logs and unpacked data for PriceDeviationUpdated events raised by the Pool contract.

func (*PoolPriceDeviationUpdatedIterator) Close

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

func (*PoolPriceDeviationUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolPriceDeviationUpdatedIterator) 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 PoolRaw

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

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

func (*PoolRaw) Call

func (_Pool *PoolRaw) 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 (*PoolRaw) Transact

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

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

func (*PoolRaw) Transfer

func (_Pool *PoolRaw) 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 PoolRetentionRatioUpdated

type PoolRetentionRatioUpdated struct {
	PreviousRetentionRatio *big.Int
	NewRetentionRatio      *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

PoolRetentionRatioUpdated represents a RetentionRatioUpdated event raised by the Pool contract.

type PoolRetentionRatioUpdatedIterator

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

PoolRetentionRatioUpdatedIterator is returned from FilterRetentionRatioUpdated and is used to iterate over the raw logs and unpacked data for RetentionRatioUpdated events raised by the Pool contract.

func (*PoolRetentionRatioUpdatedIterator) Close

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

func (*PoolRetentionRatioUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolRetentionRatioUpdatedIterator) 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 PoolSession

type PoolSession struct {
	Contract     *Pool             // 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
}

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

func (*PoolSession) AddAsset

func (_Pool *PoolSession) AddAsset(token common.Address, asset common.Address) (*types.Transaction, error)

AddAsset is a paid mutator transaction binding the contract method 0xda489997.

Solidity: function addAsset(address token, address asset) returns()

func (*PoolSession) AssetOf

func (_Pool *PoolSession) AssetOf(token common.Address) (common.Address, error)

AssetOf is a free data retrieval call binding the contract method 0x71f96211.

Solidity: function assetOf(address token) view returns(address)

func (*PoolSession) Deposit

func (_Pool *PoolSession) Deposit(token common.Address, amount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x90d25074.

Solidity: function deposit(address token, uint256 amount, address to, uint256 deadline) returns(uint256 liquidity)

func (*PoolSession) GetC1

func (_Pool *PoolSession) GetC1() (*big.Int, error)

GetC1 is a free data retrieval call binding the contract method 0xa76f54d2.

Solidity: function getC1() view returns(uint256)

func (*PoolSession) GetDev

func (_Pool *PoolSession) GetDev() (common.Address, error)

GetDev is a free data retrieval call binding the contract method 0x09bb9267.

Solidity: function getDev() view returns(address)

func (*PoolSession) GetEquilibriumCoverageRatio

func (_Pool *PoolSession) GetEquilibriumCoverageRatio() (*big.Int, error)

GetEquilibriumCoverageRatio is a free data retrieval call binding the contract method 0x05f7bc26.

Solidity: function getEquilibriumCoverageRatio() view returns(uint256)

func (*PoolSession) GetHaircutRate

func (_Pool *PoolSession) GetHaircutRate() (*big.Int, error)

GetHaircutRate is a free data retrieval call binding the contract method 0x7fdd5a8e.

Solidity: function getHaircutRate() view returns(uint256)

func (*PoolSession) GetMaxPriceDeviation

func (_Pool *PoolSession) GetMaxPriceDeviation() (*big.Int, error)

GetMaxPriceDeviation is a free data retrieval call binding the contract method 0xddcbc516.

Solidity: function getMaxPriceDeviation() view returns(uint256)

func (*PoolSession) GetPriceOracle

func (_Pool *PoolSession) GetPriceOracle() (common.Address, error)

GetPriceOracle is a free data retrieval call binding the contract method 0xfca513a8.

Solidity: function getPriceOracle() view returns(address)

func (*PoolSession) GetRetentionRatio

func (_Pool *PoolSession) GetRetentionRatio() (*big.Int, error)

GetRetentionRatio is a free data retrieval call binding the contract method 0xcb733d7a.

Solidity: function getRetentionRatio() view returns(uint256)

func (*PoolSession) GetSlippageParamK

func (_Pool *PoolSession) GetSlippageParamK() (*big.Int, error)

GetSlippageParamK is a free data retrieval call binding the contract method 0x55af008a.

Solidity: function getSlippageParamK() view returns(uint256)

func (*PoolSession) GetSlippageParamN

func (_Pool *PoolSession) GetSlippageParamN() (*big.Int, error)

GetSlippageParamN is a free data retrieval call binding the contract method 0x7727c655.

Solidity: function getSlippageParamN() view returns(uint256)

func (*PoolSession) GetTokenAddresses

func (_Pool *PoolSession) GetTokenAddresses() ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

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

func (*PoolSession) GetXThreshold

func (_Pool *PoolSession) GetXThreshold() (*big.Int, error)

GetXThreshold is a free data retrieval call binding the contract method 0x7a1c36d1.

Solidity: function getXThreshold() view returns(uint256)

func (*PoolSession) Initialize

func (_Pool *PoolSession) Initialize() (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*PoolSession) Owner

func (_Pool *PoolSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PoolSession) Pause

func (_Pool *PoolSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PoolSession) Paused

func (_Pool *PoolSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PoolSession) QuoteMaxInitialAssetWithdrawable

func (_Pool *PoolSession) QuoteMaxInitialAssetWithdrawable(initialToken common.Address, wantedToken common.Address) (*big.Int, error)

QuoteMaxInitialAssetWithdrawable is a free data retrieval call binding the contract method 0x2a803b5e.

Solidity: function quoteMaxInitialAssetWithdrawable(address initialToken, address wantedToken) view returns(uint256 maxInitialAssetAmount)

func (*PoolSession) QuotePotentialSwap

func (_Pool *PoolSession) QuotePotentialSwap(fromToken common.Address, toToken common.Address, fromAmount *big.Int) (struct {
	PotentialOutcome *big.Int
	Haircut          *big.Int
}, error)

QuotePotentialSwap is a free data retrieval call binding the contract method 0x43c2e2f5.

Solidity: function quotePotentialSwap(address fromToken, address toToken, uint256 fromAmount) view returns(uint256 potentialOutcome, uint256 haircut)

func (*PoolSession) QuotePotentialWithdraw

func (_Pool *PoolSession) QuotePotentialWithdraw(token common.Address, liquidity *big.Int) (struct {
	Amount     *big.Int
	Fee        *big.Int
	EnoughCash bool
}, error)

QuotePotentialWithdraw is a free data retrieval call binding the contract method 0x907448ed.

Solidity: function quotePotentialWithdraw(address token, uint256 liquidity) view returns(uint256 amount, uint256 fee, bool enoughCash)

func (*PoolSession) QuotePotentialWithdrawFromOtherAsset

func (_Pool *PoolSession) QuotePotentialWithdrawFromOtherAsset(initialToken common.Address, wantedToken common.Address, liquidity *big.Int) (struct {
	Amount *big.Int
	Fee    *big.Int
}, error)

QuotePotentialWithdrawFromOtherAsset is a free data retrieval call binding the contract method 0xa4275ceb.

Solidity: function quotePotentialWithdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity) view returns(uint256 amount, uint256 fee)

func (*PoolSession) RecoverUserFunds

func (_Pool *PoolSession) RecoverUserFunds(token common.Address) (*types.Transaction, error)

RecoverUserFunds is a paid mutator transaction binding the contract method 0x0d4636b5.

Solidity: function recoverUserFunds(address token) returns()

func (*PoolSession) RemoveAsset

func (_Pool *PoolSession) RemoveAsset(key common.Address) (*types.Transaction, error)

RemoveAsset is a paid mutator transaction binding the contract method 0x4a5e42b1.

Solidity: function removeAsset(address key) returns()

func (*PoolSession) RenounceOwnership

func (_Pool *PoolSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PoolSession) SetDev

func (_Pool *PoolSession) SetDev(dev common.Address) (*types.Transaction, error)

SetDev is a paid mutator transaction binding the contract method 0xd477f05f.

Solidity: function setDev(address dev) returns()

func (*PoolSession) SetHaircutRate

func (_Pool *PoolSession) SetHaircutRate(haircutRate_ *big.Int) (*types.Transaction, error)

SetHaircutRate is a paid mutator transaction binding the contract method 0xf57e84d5.

Solidity: function setHaircutRate(uint256 haircutRate_) returns()

func (*PoolSession) SetMaxPriceDeviation

func (_Pool *PoolSession) SetMaxPriceDeviation(maxPriceDeviation_ *big.Int) (*types.Transaction, error)

SetMaxPriceDeviation is a paid mutator transaction binding the contract method 0x9ee4c057.

Solidity: function setMaxPriceDeviation(uint256 maxPriceDeviation_) returns()

func (*PoolSession) SetPriceOracle

func (_Pool *PoolSession) SetPriceOracle(priceOracle common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address priceOracle) returns()

func (*PoolSession) SetRetentionRatio

func (_Pool *PoolSession) SetRetentionRatio(retentionRatio_ *big.Int) (*types.Transaction, error)

SetRetentionRatio is a paid mutator transaction binding the contract method 0x44db964a.

Solidity: function setRetentionRatio(uint256 retentionRatio_) returns()

func (*PoolSession) SetSlippageParams

func (_Pool *PoolSession) SetSlippageParams(k_ *big.Int, n_ *big.Int, c1_ *big.Int, xThreshold_ *big.Int) (*types.Transaction, error)

SetSlippageParams is a paid mutator transaction binding the contract method 0xdf220181.

Solidity: function setSlippageParams(uint256 k_, uint256 n_, uint256 c1_, uint256 xThreshold_) returns()

func (*PoolSession) Swap

func (_Pool *PoolSession) Swap(fromToken common.Address, toToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x9908fc8b.

Solidity: function swap(address fromToken, address toToken, uint256 fromAmount, uint256 minimumToAmount, address to, uint256 deadline) returns(uint256 actualToAmount, uint256 haircut)

func (*PoolSession) TransferOwnership

func (_Pool *PoolSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*PoolSession) Unpause

func (_Pool *PoolSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PoolSession) Withdraw

func (_Pool *PoolSession) Withdraw(token common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

func (*PoolSession) WithdrawFromOtherAsset

func (_Pool *PoolSession) WithdrawFromOtherAsset(initialToken common.Address, wantedToken common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawFromOtherAsset is a paid mutator transaction binding the contract method 0x0f91f06f.

Solidity: function withdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

type PoolSlippageParamsUpdated

type PoolSlippageParamsUpdated struct {
	PreviousK          *big.Int
	NewK               *big.Int
	PreviousN          *big.Int
	NewN               *big.Int
	PreviousC1         *big.Int
	NewC1              *big.Int
	PreviousXThreshold *big.Int
	NewXThreshold      *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

PoolSlippageParamsUpdated represents a SlippageParamsUpdated event raised by the Pool contract.

type PoolSlippageParamsUpdatedIterator

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

PoolSlippageParamsUpdatedIterator is returned from FilterSlippageParamsUpdated and is used to iterate over the raw logs and unpacked data for SlippageParamsUpdated events raised by the Pool contract.

func (*PoolSlippageParamsUpdatedIterator) Close

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

func (*PoolSlippageParamsUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSlippageParamsUpdatedIterator) 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 PoolSwap

type PoolSwap struct {
	Sender     common.Address
	FromToken  common.Address
	ToToken    common.Address
	FromAmount *big.Int
	ToAmount   *big.Int
	To         common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

PoolSwap represents a Swap event raised by the Pool contract.

type PoolSwapIterator

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

PoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Pool contract.

func (*PoolSwapIterator) Close

func (it *PoolSwapIterator) Close() error

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

func (*PoolSwapIterator) Error

func (it *PoolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSwapIterator) Next

func (it *PoolSwapIterator) Next() bool

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 PoolTransactor

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

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

func NewPoolTransactor

func NewPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*PoolTransactor, error)

NewPoolTransactor creates a new write-only instance of Pool, bound to a specific deployed contract.

func (*PoolTransactor) AddAsset

func (_Pool *PoolTransactor) AddAsset(opts *bind.TransactOpts, token common.Address, asset common.Address) (*types.Transaction, error)

AddAsset is a paid mutator transaction binding the contract method 0xda489997.

Solidity: function addAsset(address token, address asset) returns()

func (*PoolTransactor) Deposit

func (_Pool *PoolTransactor) Deposit(opts *bind.TransactOpts, token common.Address, amount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x90d25074.

Solidity: function deposit(address token, uint256 amount, address to, uint256 deadline) returns(uint256 liquidity)

func (*PoolTransactor) Initialize

func (_Pool *PoolTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*PoolTransactor) Pause

func (_Pool *PoolTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PoolTransactor) RecoverUserFunds

func (_Pool *PoolTransactor) RecoverUserFunds(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

RecoverUserFunds is a paid mutator transaction binding the contract method 0x0d4636b5.

Solidity: function recoverUserFunds(address token) returns()

func (*PoolTransactor) RemoveAsset

func (_Pool *PoolTransactor) RemoveAsset(opts *bind.TransactOpts, key common.Address) (*types.Transaction, error)

RemoveAsset is a paid mutator transaction binding the contract method 0x4a5e42b1.

Solidity: function removeAsset(address key) returns()

func (*PoolTransactor) RenounceOwnership

func (_Pool *PoolTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PoolTransactor) SetDev

func (_Pool *PoolTransactor) SetDev(opts *bind.TransactOpts, dev common.Address) (*types.Transaction, error)

SetDev is a paid mutator transaction binding the contract method 0xd477f05f.

Solidity: function setDev(address dev) returns()

func (*PoolTransactor) SetHaircutRate

func (_Pool *PoolTransactor) SetHaircutRate(opts *bind.TransactOpts, haircutRate_ *big.Int) (*types.Transaction, error)

SetHaircutRate is a paid mutator transaction binding the contract method 0xf57e84d5.

Solidity: function setHaircutRate(uint256 haircutRate_) returns()

func (*PoolTransactor) SetMaxPriceDeviation

func (_Pool *PoolTransactor) SetMaxPriceDeviation(opts *bind.TransactOpts, maxPriceDeviation_ *big.Int) (*types.Transaction, error)

SetMaxPriceDeviation is a paid mutator transaction binding the contract method 0x9ee4c057.

Solidity: function setMaxPriceDeviation(uint256 maxPriceDeviation_) returns()

func (*PoolTransactor) SetPriceOracle

func (_Pool *PoolTransactor) SetPriceOracle(opts *bind.TransactOpts, priceOracle common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address priceOracle) returns()

func (*PoolTransactor) SetRetentionRatio

func (_Pool *PoolTransactor) SetRetentionRatio(opts *bind.TransactOpts, retentionRatio_ *big.Int) (*types.Transaction, error)

SetRetentionRatio is a paid mutator transaction binding the contract method 0x44db964a.

Solidity: function setRetentionRatio(uint256 retentionRatio_) returns()

func (*PoolTransactor) SetSlippageParams

func (_Pool *PoolTransactor) SetSlippageParams(opts *bind.TransactOpts, k_ *big.Int, n_ *big.Int, c1_ *big.Int, xThreshold_ *big.Int) (*types.Transaction, error)

SetSlippageParams is a paid mutator transaction binding the contract method 0xdf220181.

Solidity: function setSlippageParams(uint256 k_, uint256 n_, uint256 c1_, uint256 xThreshold_) returns()

func (*PoolTransactor) Swap

func (_Pool *PoolTransactor) Swap(opts *bind.TransactOpts, fromToken common.Address, toToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x9908fc8b.

Solidity: function swap(address fromToken, address toToken, uint256 fromAmount, uint256 minimumToAmount, address to, uint256 deadline) returns(uint256 actualToAmount, uint256 haircut)

func (*PoolTransactor) TransferOwnership

func (_Pool *PoolTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*PoolTransactor) Unpause

func (_Pool *PoolTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PoolTransactor) Withdraw

func (_Pool *PoolTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

func (*PoolTransactor) WithdrawFromOtherAsset

func (_Pool *PoolTransactor) WithdrawFromOtherAsset(opts *bind.TransactOpts, initialToken common.Address, wantedToken common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawFromOtherAsset is a paid mutator transaction binding the contract method 0x0f91f06f.

Solidity: function withdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

type PoolTransactorRaw

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

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

func (*PoolTransactorRaw) Transact

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

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

func (*PoolTransactorRaw) Transfer

func (_Pool *PoolTransactorRaw) 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 PoolTransactorSession

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

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

func (*PoolTransactorSession) AddAsset

func (_Pool *PoolTransactorSession) AddAsset(token common.Address, asset common.Address) (*types.Transaction, error)

AddAsset is a paid mutator transaction binding the contract method 0xda489997.

Solidity: function addAsset(address token, address asset) returns()

func (*PoolTransactorSession) Deposit

func (_Pool *PoolTransactorSession) Deposit(token common.Address, amount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x90d25074.

Solidity: function deposit(address token, uint256 amount, address to, uint256 deadline) returns(uint256 liquidity)

func (*PoolTransactorSession) Initialize

func (_Pool *PoolTransactorSession) Initialize() (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*PoolTransactorSession) Pause

func (_Pool *PoolTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PoolTransactorSession) RecoverUserFunds

func (_Pool *PoolTransactorSession) RecoverUserFunds(token common.Address) (*types.Transaction, error)

RecoverUserFunds is a paid mutator transaction binding the contract method 0x0d4636b5.

Solidity: function recoverUserFunds(address token) returns()

func (*PoolTransactorSession) RemoveAsset

func (_Pool *PoolTransactorSession) RemoveAsset(key common.Address) (*types.Transaction, error)

RemoveAsset is a paid mutator transaction binding the contract method 0x4a5e42b1.

Solidity: function removeAsset(address key) returns()

func (*PoolTransactorSession) RenounceOwnership

func (_Pool *PoolTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PoolTransactorSession) SetDev

func (_Pool *PoolTransactorSession) SetDev(dev common.Address) (*types.Transaction, error)

SetDev is a paid mutator transaction binding the contract method 0xd477f05f.

Solidity: function setDev(address dev) returns()

func (*PoolTransactorSession) SetHaircutRate

func (_Pool *PoolTransactorSession) SetHaircutRate(haircutRate_ *big.Int) (*types.Transaction, error)

SetHaircutRate is a paid mutator transaction binding the contract method 0xf57e84d5.

Solidity: function setHaircutRate(uint256 haircutRate_) returns()

func (*PoolTransactorSession) SetMaxPriceDeviation

func (_Pool *PoolTransactorSession) SetMaxPriceDeviation(maxPriceDeviation_ *big.Int) (*types.Transaction, error)

SetMaxPriceDeviation is a paid mutator transaction binding the contract method 0x9ee4c057.

Solidity: function setMaxPriceDeviation(uint256 maxPriceDeviation_) returns()

func (*PoolTransactorSession) SetPriceOracle

func (_Pool *PoolTransactorSession) SetPriceOracle(priceOracle common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address priceOracle) returns()

func (*PoolTransactorSession) SetRetentionRatio

func (_Pool *PoolTransactorSession) SetRetentionRatio(retentionRatio_ *big.Int) (*types.Transaction, error)

SetRetentionRatio is a paid mutator transaction binding the contract method 0x44db964a.

Solidity: function setRetentionRatio(uint256 retentionRatio_) returns()

func (*PoolTransactorSession) SetSlippageParams

func (_Pool *PoolTransactorSession) SetSlippageParams(k_ *big.Int, n_ *big.Int, c1_ *big.Int, xThreshold_ *big.Int) (*types.Transaction, error)

SetSlippageParams is a paid mutator transaction binding the contract method 0xdf220181.

Solidity: function setSlippageParams(uint256 k_, uint256 n_, uint256 c1_, uint256 xThreshold_) returns()

func (*PoolTransactorSession) Swap

func (_Pool *PoolTransactorSession) Swap(fromToken common.Address, toToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x9908fc8b.

Solidity: function swap(address fromToken, address toToken, uint256 fromAmount, uint256 minimumToAmount, address to, uint256 deadline) returns(uint256 actualToAmount, uint256 haircut)

func (*PoolTransactorSession) TransferOwnership

func (_Pool *PoolTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*PoolTransactorSession) Unpause

func (_Pool *PoolTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PoolTransactorSession) Withdraw

func (_Pool *PoolTransactorSession) Withdraw(token common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

func (*PoolTransactorSession) WithdrawFromOtherAsset

func (_Pool *PoolTransactorSession) WithdrawFromOtherAsset(initialToken common.Address, wantedToken common.Address, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawFromOtherAsset is a paid mutator transaction binding the contract method 0x0f91f06f.

Solidity: function withdrawFromOtherAsset(address initialToken, address wantedToken, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns(uint256 amount)

type PoolUnpaused

type PoolUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

PoolUnpaused represents a Unpaused event raised by the Pool contract.

type PoolUnpausedIterator

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

PoolUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Pool contract.

func (*PoolUnpausedIterator) Close

func (it *PoolUnpausedIterator) Close() error

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

func (*PoolUnpausedIterator) Error

func (it *PoolUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolUnpausedIterator) Next

func (it *PoolUnpausedIterator) Next() bool

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 PoolWithdraw

type PoolWithdraw struct {
	Sender    common.Address
	Token     common.Address
	Amount    *big.Int
	Liquidity *big.Int
	To        common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

PoolWithdraw represents a Withdraw event raised by the Pool contract.

type PoolWithdrawIterator

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

PoolWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Pool contract.

func (*PoolWithdrawIterator) Close

func (it *PoolWithdrawIterator) Close() error

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

func (*PoolWithdrawIterator) Error

func (it *PoolWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolWithdrawIterator) Next

func (it *PoolWithdrawIterator) Next() bool

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.

Jump to

Keyboard shortcuts

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