platypusRouterSavax

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlatypusRouterSavaxABI = PlatypusRouterSavaxMetaData.ABI

PlatypusRouterSavaxABI is the input ABI used to generate the binding from. Deprecated: Use PlatypusRouterSavaxMetaData.ABI instead.

View Source
var PlatypusRouterSavaxMetaData = &bind.MetaData{
	ABI: "[{\"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\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"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\":\"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\":[{\"internalType\":\"address\",\"name\":\"weth_\",\"type\":\"address\"}],\"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\":\"key\",\"type\":\"address\"}],\"name\":\"removeAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sAvax\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\":\"address\",\"name\":\"sAvax_\",\"type\":\"address\"}],\"name\":\"setSAvax\",\"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\":\"wethForwarder_\",\"type\":\"address\"}],\"name\":\"setWETHForwarder\",\"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\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minimumToAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapFromETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"actualToAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"haircut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"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\":\"swapToETH\",\"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\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wethForwarder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"withdrawETH\",\"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\"}]",
}

PlatypusRouterSavaxMetaData contains all meta data concerning the PlatypusRouterSavax contract.

Functions

This section is empty.

Types

type PlatypusRouterSavax

type PlatypusRouterSavax struct {
	PlatypusRouterSavaxCaller     // Read-only binding to the contract
	PlatypusRouterSavaxTransactor // Write-only binding to the contract
	PlatypusRouterSavaxFilterer   // Log filterer for contract events
}

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

func NewPlatypusRouterSavax

func NewPlatypusRouterSavax(address common.Address, backend bind.ContractBackend) (*PlatypusRouterSavax, error)

NewPlatypusRouterSavax creates a new instance of PlatypusRouterSavax, bound to a specific deployed contract.

type PlatypusRouterSavaxCaller

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

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

func NewPlatypusRouterSavaxCaller

func NewPlatypusRouterSavaxCaller(address common.Address, caller bind.ContractCaller) (*PlatypusRouterSavaxCaller, error)

NewPlatypusRouterSavaxCaller creates a new read-only instance of PlatypusRouterSavax, bound to a specific deployed contract.

func (*PlatypusRouterSavaxCaller) AssetOf

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetC1

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetSlippageParamK

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetSlippageParamN

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetTokenAddresses

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) GetXThreshold

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) Owner

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) Paused

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) QuoteMaxInitialAssetWithdrawable

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) QuotePotentialSwap

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) QuotePotentialWithdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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 (*PlatypusRouterSavaxCaller) QuotePotentialWithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) 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)

func (*PlatypusRouterSavaxCaller) SAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) SAvax(opts *bind.CallOpts) (common.Address, error)

SAvax is a free data retrieval call binding the contract method 0x3d05f2c3.

Solidity: function sAvax() view returns(address)

func (*PlatypusRouterSavaxCaller) Weth

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) Weth(opts *bind.CallOpts) (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

func (*PlatypusRouterSavaxCaller) WethForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxCaller) WethForwarder(opts *bind.CallOpts) (common.Address, error)

WethForwarder is a free data retrieval call binding the contract method 0x03b2f7aa.

Solidity: function wethForwarder() view returns(address)

type PlatypusRouterSavaxCallerRaw

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

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

func (*PlatypusRouterSavaxCallerRaw) Call

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerRaw) 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 PlatypusRouterSavaxCallerSession

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

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

func (*PlatypusRouterSavaxCallerSession) AssetOf

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) 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 (*PlatypusRouterSavaxCallerSession) GetC1

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetC1() (*big.Int, error)

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

Solidity: function getC1() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetDev() (common.Address, error)

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

Solidity: function getDev() view returns(address)

func (*PlatypusRouterSavaxCallerSession) GetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetHaircutRate() (*big.Int, error)

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

Solidity: function getHaircutRate() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetMaxPriceDeviation() (*big.Int, error)

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

Solidity: function getMaxPriceDeviation() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetPriceOracle() (common.Address, error)

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

Solidity: function getPriceOracle() view returns(address)

func (*PlatypusRouterSavaxCallerSession) GetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetRetentionRatio() (*big.Int, error)

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

Solidity: function getRetentionRatio() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetSlippageParamK

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetSlippageParamK() (*big.Int, error)

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

Solidity: function getSlippageParamK() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetSlippageParamN

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetSlippageParamN() (*big.Int, error)

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

Solidity: function getSlippageParamN() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) GetTokenAddresses

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetTokenAddresses() ([]common.Address, error)

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

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

func (*PlatypusRouterSavaxCallerSession) GetXThreshold

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) GetXThreshold() (*big.Int, error)

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

Solidity: function getXThreshold() view returns(uint256)

func (*PlatypusRouterSavaxCallerSession) Owner

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PlatypusRouterSavaxCallerSession) Paused

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*PlatypusRouterSavaxCallerSession) QuoteMaxInitialAssetWithdrawable

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) 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 (*PlatypusRouterSavaxCallerSession) QuotePotentialSwap

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) 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 (*PlatypusRouterSavaxCallerSession) QuotePotentialWithdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) 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 (*PlatypusRouterSavaxCallerSession) QuotePotentialWithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) 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 (*PlatypusRouterSavaxCallerSession) SAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) SAvax() (common.Address, error)

SAvax is a free data retrieval call binding the contract method 0x3d05f2c3.

Solidity: function sAvax() view returns(address)

func (*PlatypusRouterSavaxCallerSession) Weth

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

func (*PlatypusRouterSavaxCallerSession) WethForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxCallerSession) WethForwarder() (common.Address, error)

WethForwarder is a free data retrieval call binding the contract method 0x03b2f7aa.

Solidity: function wethForwarder() view returns(address)

type PlatypusRouterSavaxFilterer

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

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

func NewPlatypusRouterSavaxFilterer

func NewPlatypusRouterSavaxFilterer(address common.Address, filterer bind.ContractFilterer) (*PlatypusRouterSavaxFilterer, error)

NewPlatypusRouterSavaxFilterer creates a new log filterer instance of PlatypusRouterSavax, bound to a specific deployed contract.

type PlatypusRouterSavaxRaw

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

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

func (*PlatypusRouterSavaxRaw) Call

func (_PlatypusRouterSavax *PlatypusRouterSavaxRaw) 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 (*PlatypusRouterSavaxRaw) Transact

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

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

func (*PlatypusRouterSavaxRaw) Transfer

func (_PlatypusRouterSavax *PlatypusRouterSavaxRaw) 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 PlatypusRouterSavaxSession

type PlatypusRouterSavaxSession struct {
	Contract     *PlatypusRouterSavax // 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
}

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

func (*PlatypusRouterSavaxSession) AddAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) AssetOf

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) Deposit

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) DepositETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) DepositETH(to common.Address, deadline *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x2e599054.

Solidity: function depositETH(address to, uint256 deadline) payable returns(uint256 liquidity)

func (*PlatypusRouterSavaxSession) GetC1

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetC1() (*big.Int, error)

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

Solidity: function getC1() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetDev() (common.Address, error)

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

Solidity: function getDev() view returns(address)

func (*PlatypusRouterSavaxSession) GetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetHaircutRate() (*big.Int, error)

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

Solidity: function getHaircutRate() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetMaxPriceDeviation() (*big.Int, error)

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

Solidity: function getMaxPriceDeviation() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetPriceOracle() (common.Address, error)

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

Solidity: function getPriceOracle() view returns(address)

func (*PlatypusRouterSavaxSession) GetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetRetentionRatio() (*big.Int, error)

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

Solidity: function getRetentionRatio() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetSlippageParamK

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetSlippageParamK() (*big.Int, error)

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

Solidity: function getSlippageParamK() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetSlippageParamN

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetSlippageParamN() (*big.Int, error)

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

Solidity: function getSlippageParamN() view returns(uint256)

func (*PlatypusRouterSavaxSession) GetTokenAddresses

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetTokenAddresses() ([]common.Address, error)

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

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

func (*PlatypusRouterSavaxSession) GetXThreshold

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) GetXThreshold() (*big.Int, error)

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

Solidity: function getXThreshold() view returns(uint256)

func (*PlatypusRouterSavaxSession) Initialize

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Initialize(weth_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address weth_) returns()

func (*PlatypusRouterSavaxSession) Owner

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PlatypusRouterSavaxSession) Pause

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*PlatypusRouterSavaxSession) Paused

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*PlatypusRouterSavaxSession) QuoteMaxInitialAssetWithdrawable

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) QuotePotentialSwap

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) QuotePotentialWithdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) QuotePotentialWithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) RemoveAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) RenounceOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusRouterSavaxSession) SAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) SAvax() (common.Address, error)

SAvax is a free data retrieval call binding the contract method 0x3d05f2c3.

Solidity: function sAvax() view returns(address)

func (*PlatypusRouterSavaxSession) SetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetSAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) SetSAvax(sAvax_ common.Address) (*types.Transaction, error)

SetSAvax is a paid mutator transaction binding the contract method 0x77dd6d7e.

Solidity: function setSAvax(address sAvax_) returns()

func (*PlatypusRouterSavaxSession) SetSlippageParams

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SetWETHForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) SetWETHForwarder(wethForwarder_ common.Address) (*types.Transaction, error)

SetWETHForwarder is a paid mutator transaction binding the contract method 0x57eab9b2.

Solidity: function setWETHForwarder(address wethForwarder_) returns()

func (*PlatypusRouterSavaxSession) Swap

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) SwapFromETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) SwapFromETH(toToken common.Address, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapFromETH is a paid mutator transaction binding the contract method 0x2d59d767.

Solidity: function swapFromETH(address toToken, uint256 minimumToAmount, address to, uint256 deadline) payable returns(uint256 actualToAmount, uint256 haircut)

func (*PlatypusRouterSavaxSession) SwapToETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) SwapToETH(fromToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapToETH is a paid mutator transaction binding the contract method 0x1192903f.

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

func (*PlatypusRouterSavaxSession) TransferOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) Unpause

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Unpause() (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*PlatypusRouterSavaxSession) Weth

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

func (*PlatypusRouterSavaxSession) WethForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) WethForwarder() (common.Address, error)

WethForwarder is a free data retrieval call binding the contract method 0x03b2f7aa.

Solidity: function wethForwarder() view returns(address)

func (*PlatypusRouterSavaxSession) Withdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 (*PlatypusRouterSavaxSession) WithdrawETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) WithdrawETH(liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x7fc4b3ec.

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

func (*PlatypusRouterSavaxSession) WithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxSession) 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 PlatypusRouterSavaxTransactor

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

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

func NewPlatypusRouterSavaxTransactor

func NewPlatypusRouterSavaxTransactor(address common.Address, transactor bind.ContractTransactor) (*PlatypusRouterSavaxTransactor, error)

NewPlatypusRouterSavaxTransactor creates a new write-only instance of PlatypusRouterSavax, bound to a specific deployed contract.

func (*PlatypusRouterSavaxTransactor) AddAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) Deposit

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) DepositETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) DepositETH(opts *bind.TransactOpts, to common.Address, deadline *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x2e599054.

Solidity: function depositETH(address to, uint256 deadline) payable returns(uint256 liquidity)

func (*PlatypusRouterSavaxTransactor) Initialize

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) Initialize(opts *bind.TransactOpts, weth_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address weth_) returns()

func (*PlatypusRouterSavaxTransactor) Pause

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*PlatypusRouterSavaxTransactor) RemoveAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) RenounceOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusRouterSavaxTransactor) SetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetSAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) SetSAvax(opts *bind.TransactOpts, sAvax_ common.Address) (*types.Transaction, error)

SetSAvax is a paid mutator transaction binding the contract method 0x77dd6d7e.

Solidity: function setSAvax(address sAvax_) returns()

func (*PlatypusRouterSavaxTransactor) SetSlippageParams

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SetWETHForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) SetWETHForwarder(opts *bind.TransactOpts, wethForwarder_ common.Address) (*types.Transaction, error)

SetWETHForwarder is a paid mutator transaction binding the contract method 0x57eab9b2.

Solidity: function setWETHForwarder(address wethForwarder_) returns()

func (*PlatypusRouterSavaxTransactor) Swap

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) SwapFromETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) SwapFromETH(opts *bind.TransactOpts, toToken common.Address, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapFromETH is a paid mutator transaction binding the contract method 0x2d59d767.

Solidity: function swapFromETH(address toToken, uint256 minimumToAmount, address to, uint256 deadline) payable returns(uint256 actualToAmount, uint256 haircut)

func (*PlatypusRouterSavaxTransactor) SwapToETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) SwapToETH(opts *bind.TransactOpts, fromToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapToETH is a paid mutator transaction binding the contract method 0x1192903f.

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

func (*PlatypusRouterSavaxTransactor) TransferOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) Unpause

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*PlatypusRouterSavaxTransactor) Withdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 (*PlatypusRouterSavaxTransactor) WithdrawETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) WithdrawETH(opts *bind.TransactOpts, liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x7fc4b3ec.

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

func (*PlatypusRouterSavaxTransactor) WithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactor) 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 PlatypusRouterSavaxTransactorRaw

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

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

func (*PlatypusRouterSavaxTransactorRaw) Transact

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

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

func (*PlatypusRouterSavaxTransactorRaw) Transfer

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorRaw) 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 PlatypusRouterSavaxTransactorSession

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

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

func (*PlatypusRouterSavaxTransactorSession) AddAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) Deposit

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) DepositETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) DepositETH(to common.Address, deadline *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x2e599054.

Solidity: function depositETH(address to, uint256 deadline) payable returns(uint256 liquidity)

func (*PlatypusRouterSavaxTransactorSession) Initialize

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) Initialize(weth_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address weth_) returns()

func (*PlatypusRouterSavaxTransactorSession) Pause

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*PlatypusRouterSavaxTransactorSession) RemoveAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) RenounceOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusRouterSavaxTransactorSession) SetDev

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetHaircutRate

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetMaxPriceDeviation

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetPriceOracle

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetRetentionRatio

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetSAvax

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) SetSAvax(sAvax_ common.Address) (*types.Transaction, error)

SetSAvax is a paid mutator transaction binding the contract method 0x77dd6d7e.

Solidity: function setSAvax(address sAvax_) returns()

func (*PlatypusRouterSavaxTransactorSession) SetSlippageParams

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SetWETHForwarder

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) SetWETHForwarder(wethForwarder_ common.Address) (*types.Transaction, error)

SetWETHForwarder is a paid mutator transaction binding the contract method 0x57eab9b2.

Solidity: function setWETHForwarder(address wethForwarder_) returns()

func (*PlatypusRouterSavaxTransactorSession) Swap

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) SwapFromETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) SwapFromETH(toToken common.Address, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapFromETH is a paid mutator transaction binding the contract method 0x2d59d767.

Solidity: function swapFromETH(address toToken, uint256 minimumToAmount, address to, uint256 deadline) payable returns(uint256 actualToAmount, uint256 haircut)

func (*PlatypusRouterSavaxTransactorSession) SwapToETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) SwapToETH(fromToken common.Address, fromAmount *big.Int, minimumToAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

SwapToETH is a paid mutator transaction binding the contract method 0x1192903f.

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

func (*PlatypusRouterSavaxTransactorSession) TransferOwnership

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) Unpause

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) Unpause() (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*PlatypusRouterSavaxTransactorSession) Withdraw

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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 (*PlatypusRouterSavaxTransactorSession) WithdrawETH

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) WithdrawETH(liquidity *big.Int, minimumAmount *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x7fc4b3ec.

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

func (*PlatypusRouterSavaxTransactorSession) WithdrawFromOtherAsset

func (_PlatypusRouterSavax *PlatypusRouterSavaxTransactorSession) 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)

Jump to

Keyboard shortcuts

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