Documentation
¶
Index ¶
- Variables
- type Vault
- type VaultBuyUSDG
- type VaultBuyUSDGIterator
- type VaultCaller
- func (_Vault *VaultCaller) AdjustForDecimals(opts *bind.CallOpts, _amount *big.Int, _tokenDiv common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCaller) AllWhitelistedTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_Vault *VaultCaller) AllWhitelistedTokensLength(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) ApprovedRouters(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Vault *VaultCaller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) BufferAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) CumulativeFundingRates(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) ErrorController(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) Errors(opts *bind.CallOpts, arg0 *big.Int) (string, error)
- func (_Vault *VaultCaller) FUNDINGRATEPRECISION(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) FeeReserves(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) FundingInterval(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) FundingRateFactor(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) GetDelta(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, ...) (bool, *big.Int, error)
- func (_Vault *VaultCaller) GetEntryFundingRate(opts *bind.CallOpts, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetFeeBasisPoints(opts *bind.CallOpts, _token common.Address, _usdgDelta *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetFundingFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetGlobalShortDelta(opts *bind.CallOpts, _token common.Address) (bool, *big.Int, error)
- func (_Vault *VaultCaller) GetMaxPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetMinPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetNextAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetNextFundingRate(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetNextGlobalShortAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _nextPrice *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetPosition(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, ...)
- func (_Vault *VaultCaller) GetPositionDelta(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (bool, *big.Int, error)
- func (_Vault *VaultCaller) GetPositionFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetPositionKey(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) ([32]byte, error)
- func (_Vault *VaultCaller) GetPositionLeverage(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCaller) GetRedemptionAmount(opts *bind.CallOpts, _token common.Address, _usdgAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCaller) GetRedemptionCollateral(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetRedemptionCollateralUsd(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetTargetUsdgAmount(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GetUtilisation(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GlobalShortAveragePrices(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) GlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) Gov(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) GuaranteedUsd(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) HasDynamicFees(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) InManagerMode(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) InPrivateLiquidationMode(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) IncludeAmmPrice(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) IsLeverageEnabled(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) IsLiquidator(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Vault *VaultCaller) IsManager(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Vault *VaultCaller) IsSwapEnabled(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) LastFundingTimes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) LiquidationFeeUsd(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MAXFEEBASISPOINTS(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MAXFUNDINGRATEFACTOR(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MAXLIQUIDATIONFEEUSD(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MINFUNDINGRATEINTERVAL(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MINLEVERAGE(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MarginFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MaxGasPrice(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MaxGlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) MaxLeverage(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MaxUsdgAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) MinProfitBasisPoints(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) MinProfitTime(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) MintBurnFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) PRICEPRECISION(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) PoolAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) Positions(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_Vault *VaultCaller) PriceFeed(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) ReservedAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) Router(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) ShortableTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Vault *VaultCaller) StableFundingRateFactor(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) StableSwapFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) StableTaxBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) StableTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Vault *VaultCaller) SwapFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) TaxBasisPoints(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) TokenBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) TokenDecimals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) TokenToUsdMin(opts *bind.CallOpts, _token common.Address, _tokenAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCaller) TokenWeights(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) TotalTokenWeights(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) USDGDECIMALS(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) UsdToToken(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCaller) UsdToTokenMax(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCaller) UsdToTokenMin(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCaller) Usdg(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) UsdgAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) UseSwapPricing(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) ValidateLiquidation(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, error)
- func (_Vault *VaultCaller) VaultUtils(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) WhitelistedTokenCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) WhitelistedTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- type VaultCallerRaw
- type VaultCallerSession
- func (_Vault *VaultCallerSession) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) AllWhitelistedTokens(arg0 *big.Int) (common.Address, error)
- func (_Vault *VaultCallerSession) AllWhitelistedTokensLength() (*big.Int, error)
- func (_Vault *VaultCallerSession) ApprovedRouters(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Vault *VaultCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_Vault *VaultCallerSession) BufferAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) CumulativeFundingRates(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) ErrorController() (common.Address, error)
- func (_Vault *VaultCallerSession) Errors(arg0 *big.Int) (string, error)
- func (_Vault *VaultCallerSession) FUNDINGRATEPRECISION() (*big.Int, error)
- func (_Vault *VaultCallerSession) FeeReserves(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) FundingInterval() (*big.Int, error)
- func (_Vault *VaultCallerSession) FundingRateFactor() (*big.Int, error)
- func (_Vault *VaultCallerSession) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, ...) (bool, *big.Int, error)
- func (_Vault *VaultCallerSession) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetFundingFee(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetGlobalShortDelta(_token common.Address) (bool, *big.Int, error)
- func (_Vault *VaultCallerSession) GetMaxPrice(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetMinPrice(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetNextFundingRate(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetPosition(_account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, ...)
- func (_Vault *VaultCallerSession) GetPositionDelta(_account common.Address, _collateralToken common.Address, ...) (bool, *big.Int, error)
- func (_Vault *VaultCallerSession) GetPositionFee(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetPositionKey(_account common.Address, _collateralToken common.Address, ...) ([32]byte, error)
- func (_Vault *VaultCallerSession) GetPositionLeverage(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetRedemptionCollateral(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetRedemptionCollateralUsd(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetTargetUsdgAmount(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GetUtilisation(_token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GlobalShortAveragePrices(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) GlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) Gov() (common.Address, error)
- func (_Vault *VaultCallerSession) GuaranteedUsd(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) HasDynamicFees() (bool, error)
- func (_Vault *VaultCallerSession) InManagerMode() (bool, error)
- func (_Vault *VaultCallerSession) InPrivateLiquidationMode() (bool, error)
- func (_Vault *VaultCallerSession) IncludeAmmPrice() (bool, error)
- func (_Vault *VaultCallerSession) IsInitialized() (bool, error)
- func (_Vault *VaultCallerSession) IsLeverageEnabled() (bool, error)
- func (_Vault *VaultCallerSession) IsLiquidator(arg0 common.Address) (bool, error)
- func (_Vault *VaultCallerSession) IsManager(arg0 common.Address) (bool, error)
- func (_Vault *VaultCallerSession) IsSwapEnabled() (bool, error)
- func (_Vault *VaultCallerSession) LastFundingTimes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) LiquidationFeeUsd() (*big.Int, error)
- func (_Vault *VaultCallerSession) MAXFEEBASISPOINTS() (*big.Int, error)
- func (_Vault *VaultCallerSession) MAXFUNDINGRATEFACTOR() (*big.Int, error)
- func (_Vault *VaultCallerSession) MAXLIQUIDATIONFEEUSD() (*big.Int, error)
- func (_Vault *VaultCallerSession) MINFUNDINGRATEINTERVAL() (*big.Int, error)
- func (_Vault *VaultCallerSession) MINLEVERAGE() (*big.Int, error)
- func (_Vault *VaultCallerSession) MarginFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) MaxGasPrice() (*big.Int, error)
- func (_Vault *VaultCallerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) MaxLeverage() (*big.Int, error)
- func (_Vault *VaultCallerSession) MaxUsdgAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) MinProfitBasisPoints(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) MinProfitTime() (*big.Int, error)
- func (_Vault *VaultCallerSession) MintBurnFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) PRICEPRECISION() (*big.Int, error)
- func (_Vault *VaultCallerSession) PoolAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) Positions(arg0 [32]byte) (struct{ ... }, error)
- func (_Vault *VaultCallerSession) PriceFeed() (common.Address, error)
- func (_Vault *VaultCallerSession) ReservedAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) Router() (common.Address, error)
- func (_Vault *VaultCallerSession) ShortableTokens(arg0 common.Address) (bool, error)
- func (_Vault *VaultCallerSession) StableFundingRateFactor() (*big.Int, error)
- func (_Vault *VaultCallerSession) StableSwapFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) StableTaxBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) StableTokens(arg0 common.Address) (bool, error)
- func (_Vault *VaultCallerSession) SwapFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) TaxBasisPoints() (*big.Int, error)
- func (_Vault *VaultCallerSession) TokenBalances(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) TokenDecimals(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) TokenWeights(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) TotalTokenWeights() (*big.Int, error)
- func (_Vault *VaultCallerSession) USDGDECIMALS() (*big.Int, error)
- func (_Vault *VaultCallerSession) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) Usdg() (common.Address, error)
- func (_Vault *VaultCallerSession) UsdgAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) UseSwapPricing() (bool, error)
- func (_Vault *VaultCallerSession) ValidateLiquidation(_account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, error)
- func (_Vault *VaultCallerSession) VaultUtils() (common.Address, error)
- func (_Vault *VaultCallerSession) WhitelistedTokenCount() (*big.Int, error)
- func (_Vault *VaultCallerSession) WhitelistedTokens(arg0 common.Address) (bool, error)
- type VaultClosePosition
- type VaultClosePositionIterator
- type VaultCollectMarginFees
- type VaultCollectMarginFeesIterator
- type VaultCollectSwapFees
- type VaultCollectSwapFeesIterator
- type VaultDecreaseGuaranteedUsd
- type VaultDecreaseGuaranteedUsdIterator
- type VaultDecreasePoolAmount
- type VaultDecreasePoolAmountIterator
- type VaultDecreasePosition
- type VaultDecreasePositionIterator
- type VaultDecreaseReservedAmount
- type VaultDecreaseReservedAmountIterator
- type VaultDecreaseUsdgAmount
- type VaultDecreaseUsdgAmountIterator
- type VaultDirectPoolDeposit
- type VaultDirectPoolDepositIterator
- type VaultFilterer
- func (_Vault *VaultFilterer) FilterBuyUSDG(opts *bind.FilterOpts) (*VaultBuyUSDGIterator, error)
- func (_Vault *VaultFilterer) FilterClosePosition(opts *bind.FilterOpts) (*VaultClosePositionIterator, error)
- func (_Vault *VaultFilterer) FilterCollectMarginFees(opts *bind.FilterOpts) (*VaultCollectMarginFeesIterator, error)
- func (_Vault *VaultFilterer) FilterCollectSwapFees(opts *bind.FilterOpts) (*VaultCollectSwapFeesIterator, error)
- func (_Vault *VaultFilterer) FilterDecreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultDecreaseGuaranteedUsdIterator, error)
- func (_Vault *VaultFilterer) FilterDecreasePoolAmount(opts *bind.FilterOpts) (*VaultDecreasePoolAmountIterator, error)
- func (_Vault *VaultFilterer) FilterDecreasePosition(opts *bind.FilterOpts) (*VaultDecreasePositionIterator, error)
- func (_Vault *VaultFilterer) FilterDecreaseReservedAmount(opts *bind.FilterOpts) (*VaultDecreaseReservedAmountIterator, error)
- func (_Vault *VaultFilterer) FilterDecreaseUsdgAmount(opts *bind.FilterOpts) (*VaultDecreaseUsdgAmountIterator, error)
- func (_Vault *VaultFilterer) FilterDirectPoolDeposit(opts *bind.FilterOpts) (*VaultDirectPoolDepositIterator, error)
- func (_Vault *VaultFilterer) FilterIncreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultIncreaseGuaranteedUsdIterator, error)
- func (_Vault *VaultFilterer) FilterIncreasePoolAmount(opts *bind.FilterOpts) (*VaultIncreasePoolAmountIterator, error)
- func (_Vault *VaultFilterer) FilterIncreasePosition(opts *bind.FilterOpts) (*VaultIncreasePositionIterator, error)
- func (_Vault *VaultFilterer) FilterIncreaseReservedAmount(opts *bind.FilterOpts) (*VaultIncreaseReservedAmountIterator, error)
- func (_Vault *VaultFilterer) FilterIncreaseUsdgAmount(opts *bind.FilterOpts) (*VaultIncreaseUsdgAmountIterator, error)
- func (_Vault *VaultFilterer) FilterLiquidatePosition(opts *bind.FilterOpts) (*VaultLiquidatePositionIterator, error)
- func (_Vault *VaultFilterer) FilterSellUSDG(opts *bind.FilterOpts) (*VaultSellUSDGIterator, error)
- func (_Vault *VaultFilterer) FilterSwap(opts *bind.FilterOpts) (*VaultSwapIterator, error)
- func (_Vault *VaultFilterer) FilterUpdateFundingRate(opts *bind.FilterOpts) (*VaultUpdateFundingRateIterator, error)
- func (_Vault *VaultFilterer) FilterUpdatePnl(opts *bind.FilterOpts) (*VaultUpdatePnlIterator, error)
- func (_Vault *VaultFilterer) FilterUpdatePosition(opts *bind.FilterOpts) (*VaultUpdatePositionIterator, error)
- func (_Vault *VaultFilterer) ParseBuyUSDG(log types.Log) (*VaultBuyUSDG, error)
- func (_Vault *VaultFilterer) ParseClosePosition(log types.Log) (*VaultClosePosition, error)
- func (_Vault *VaultFilterer) ParseCollectMarginFees(log types.Log) (*VaultCollectMarginFees, error)
- func (_Vault *VaultFilterer) ParseCollectSwapFees(log types.Log) (*VaultCollectSwapFees, error)
- func (_Vault *VaultFilterer) ParseDecreaseGuaranteedUsd(log types.Log) (*VaultDecreaseGuaranteedUsd, error)
- func (_Vault *VaultFilterer) ParseDecreasePoolAmount(log types.Log) (*VaultDecreasePoolAmount, error)
- func (_Vault *VaultFilterer) ParseDecreasePosition(log types.Log) (*VaultDecreasePosition, error)
- func (_Vault *VaultFilterer) ParseDecreaseReservedAmount(log types.Log) (*VaultDecreaseReservedAmount, error)
- func (_Vault *VaultFilterer) ParseDecreaseUsdgAmount(log types.Log) (*VaultDecreaseUsdgAmount, error)
- func (_Vault *VaultFilterer) ParseDirectPoolDeposit(log types.Log) (*VaultDirectPoolDeposit, error)
- func (_Vault *VaultFilterer) ParseIncreaseGuaranteedUsd(log types.Log) (*VaultIncreaseGuaranteedUsd, error)
- func (_Vault *VaultFilterer) ParseIncreasePoolAmount(log types.Log) (*VaultIncreasePoolAmount, error)
- func (_Vault *VaultFilterer) ParseIncreasePosition(log types.Log) (*VaultIncreasePosition, error)
- func (_Vault *VaultFilterer) ParseIncreaseReservedAmount(log types.Log) (*VaultIncreaseReservedAmount, error)
- func (_Vault *VaultFilterer) ParseIncreaseUsdgAmount(log types.Log) (*VaultIncreaseUsdgAmount, error)
- func (_Vault *VaultFilterer) ParseLiquidatePosition(log types.Log) (*VaultLiquidatePosition, error)
- func (_Vault *VaultFilterer) ParseSellUSDG(log types.Log) (*VaultSellUSDG, error)
- func (_Vault *VaultFilterer) ParseSwap(log types.Log) (*VaultSwap, error)
- func (_Vault *VaultFilterer) ParseUpdateFundingRate(log types.Log) (*VaultUpdateFundingRate, error)
- func (_Vault *VaultFilterer) ParseUpdatePnl(log types.Log) (*VaultUpdatePnl, error)
- func (_Vault *VaultFilterer) ParseUpdatePosition(log types.Log) (*VaultUpdatePosition, error)
- func (_Vault *VaultFilterer) WatchBuyUSDG(opts *bind.WatchOpts, sink chan<- *VaultBuyUSDG) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchClosePosition(opts *bind.WatchOpts, sink chan<- *VaultClosePosition) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchCollectMarginFees(opts *bind.WatchOpts, sink chan<- *VaultCollectMarginFees) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchCollectSwapFees(opts *bind.WatchOpts, sink chan<- *VaultCollectSwapFees) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDecreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultDecreaseGuaranteedUsd) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDecreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreasePoolAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDecreasePosition(opts *bind.WatchOpts, sink chan<- *VaultDecreasePosition) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDecreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreaseReservedAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDecreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreaseUsdgAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchDirectPoolDeposit(opts *bind.WatchOpts, sink chan<- *VaultDirectPoolDeposit) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchIncreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultIncreaseGuaranteedUsd) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchIncreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreasePoolAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchIncreasePosition(opts *bind.WatchOpts, sink chan<- *VaultIncreasePosition) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchIncreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreaseReservedAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchIncreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreaseUsdgAmount) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchLiquidatePosition(opts *bind.WatchOpts, sink chan<- *VaultLiquidatePosition) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchSellUSDG(opts *bind.WatchOpts, sink chan<- *VaultSellUSDG) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *VaultSwap) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchUpdateFundingRate(opts *bind.WatchOpts, sink chan<- *VaultUpdateFundingRate) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchUpdatePnl(opts *bind.WatchOpts, sink chan<- *VaultUpdatePnl) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchUpdatePosition(opts *bind.WatchOpts, sink chan<- *VaultUpdatePosition) (event.Subscription, error)
- type VaultIncreaseGuaranteedUsd
- type VaultIncreaseGuaranteedUsdIterator
- type VaultIncreasePoolAmount
- type VaultIncreasePoolAmountIterator
- type VaultIncreasePosition
- type VaultIncreasePositionIterator
- type VaultIncreaseReservedAmount
- type VaultIncreaseReservedAmountIterator
- type VaultIncreaseUsdgAmount
- type VaultIncreaseUsdgAmountIterator
- type VaultLiquidatePosition
- type VaultLiquidatePositionIterator
- type VaultRaw
- func (_Vault *VaultRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Vault *VaultRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Vault *VaultRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VaultSellUSDG
- type VaultSellUSDGIterator
- type VaultSession
- func (_Vault *VaultSession) AddRouter(_router common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)
- func (_Vault *VaultSession) AllWhitelistedTokens(arg0 *big.Int) (common.Address, error)
- func (_Vault *VaultSession) AllWhitelistedTokensLength() (*big.Int, error)
- func (_Vault *VaultSession) ApprovedRouters(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Vault *VaultSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_Vault *VaultSession) BufferAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) ClearTokenConfig(_token common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) CumulativeFundingRates(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) DecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) ErrorController() (common.Address, error)
- func (_Vault *VaultSession) Errors(arg0 *big.Int) (string, error)
- func (_Vault *VaultSession) FUNDINGRATEPRECISION() (*big.Int, error)
- func (_Vault *VaultSession) FeeReserves(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) FundingInterval() (*big.Int, error)
- func (_Vault *VaultSession) FundingRateFactor() (*big.Int, error)
- func (_Vault *VaultSession) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, ...) (bool, *big.Int, error)
- func (_Vault *VaultSession) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
- func (_Vault *VaultSession) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultSession) GetFundingFee(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultSession) GetGlobalShortDelta(_token common.Address) (bool, *big.Int, error)
- func (_Vault *VaultSession) GetMaxPrice(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetMinPrice(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, ...) (*big.Int, error)
- func (_Vault *VaultSession) GetNextFundingRate(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) GetPosition(_account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, ...)
- func (_Vault *VaultSession) GetPositionDelta(_account common.Address, _collateralToken common.Address, ...) (bool, *big.Int, error)
- func (_Vault *VaultSession) GetPositionFee(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultSession) GetPositionKey(_account common.Address, _collateralToken common.Address, ...) ([32]byte, error)
- func (_Vault *VaultSession) GetPositionLeverage(_account common.Address, _collateralToken common.Address, ...) (*big.Int, error)
- func (_Vault *VaultSession) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) GetRedemptionCollateral(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetRedemptionCollateralUsd(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetTargetUsdgAmount(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GetUtilisation(_token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GlobalShortAveragePrices(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) GlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) Gov() (common.Address, error)
- func (_Vault *VaultSession) GuaranteedUsd(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) HasDynamicFees() (bool, error)
- func (_Vault *VaultSession) InManagerMode() (bool, error)
- func (_Vault *VaultSession) InPrivateLiquidationMode() (bool, error)
- func (_Vault *VaultSession) IncludeAmmPrice() (bool, error)
- func (_Vault *VaultSession) IncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) IsInitialized() (bool, error)
- func (_Vault *VaultSession) IsLeverageEnabled() (bool, error)
- func (_Vault *VaultSession) IsLiquidator(arg0 common.Address) (bool, error)
- func (_Vault *VaultSession) IsManager(arg0 common.Address) (bool, error)
- func (_Vault *VaultSession) IsSwapEnabled() (bool, error)
- func (_Vault *VaultSession) LastFundingTimes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) LiquidationFeeUsd() (*big.Int, error)
- func (_Vault *VaultSession) MAXFEEBASISPOINTS() (*big.Int, error)
- func (_Vault *VaultSession) MAXFUNDINGRATEFACTOR() (*big.Int, error)
- func (_Vault *VaultSession) MAXLIQUIDATIONFEEUSD() (*big.Int, error)
- func (_Vault *VaultSession) MINFUNDINGRATEINTERVAL() (*big.Int, error)
- func (_Vault *VaultSession) MINLEVERAGE() (*big.Int, error)
- func (_Vault *VaultSession) MarginFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) MaxGasPrice() (*big.Int, error)
- func (_Vault *VaultSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) MaxLeverage() (*big.Int, error)
- func (_Vault *VaultSession) MaxUsdgAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) MinProfitBasisPoints(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) MinProfitTime() (*big.Int, error)
- func (_Vault *VaultSession) MintBurnFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) PRICEPRECISION() (*big.Int, error)
- func (_Vault *VaultSession) PoolAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) Positions(arg0 [32]byte) (struct{ ... }, error)
- func (_Vault *VaultSession) PriceFeed() (common.Address, error)
- func (_Vault *VaultSession) RemoveRouter(_router common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) ReservedAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) Router() (common.Address, error)
- func (_Vault *VaultSession) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)
- func (_Vault *VaultSession) SetErrorController(_errorController common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)
- func (_Vault *VaultSession) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) ShortableTokens(arg0 common.Address) (bool, error)
- func (_Vault *VaultSession) StableFundingRateFactor() (*big.Int, error)
- func (_Vault *VaultSession) StableSwapFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) StableTaxBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) StableTokens(arg0 common.Address) (bool, error)
- func (_Vault *VaultSession) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SwapFeeBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) TaxBasisPoints() (*big.Int, error)
- func (_Vault *VaultSession) TokenBalances(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) TokenDecimals(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) TokenWeights(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) TotalTokenWeights() (*big.Int, error)
- func (_Vault *VaultSession) USDGDECIMALS() (*big.Int, error)
- func (_Vault *VaultSession) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) Usdg() (common.Address, error)
- func (_Vault *VaultSession) UsdgAmounts(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) UseSwapPricing() (bool, error)
- func (_Vault *VaultSession) ValidateLiquidation(_account common.Address, _collateralToken common.Address, ...) (*big.Int, *big.Int, error)
- func (_Vault *VaultSession) VaultUtils() (common.Address, error)
- func (_Vault *VaultSession) WhitelistedTokenCount() (*big.Int, error)
- func (_Vault *VaultSession) WhitelistedTokens(arg0 common.Address) (bool, error)
- func (_Vault *VaultSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- type VaultSwap
- type VaultSwapIterator
- type VaultTransactor
- func (_Vault *VaultTransactor) AddRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) BuyUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) ClearTokenConfig(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) DecreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) IncreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) Initialize(opts *bind.TransactOpts, _router common.Address, _usdg common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) LiquidatePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) RemoveRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SellUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetBufferAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetError(opts *bind.TransactOpts, _errorCode *big.Int, _error string) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetErrorController(opts *bind.TransactOpts, _errorController common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetFees(opts *bind.TransactOpts, _taxBasisPoints *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetFundingRate(opts *bind.TransactOpts, _fundingInterval *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetInManagerMode(opts *bind.TransactOpts, _inManagerMode bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetInPrivateLiquidationMode(opts *bind.TransactOpts, _inPrivateLiquidationMode bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetIsLeverageEnabled(opts *bind.TransactOpts, _isLeverageEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetIsSwapEnabled(opts *bind.TransactOpts, _isSwapEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetLiquidator(opts *bind.TransactOpts, _liquidator common.Address, _isActive bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetManager(opts *bind.TransactOpts, _manager common.Address, _isManager bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetMaxGasPrice(opts *bind.TransactOpts, _maxGasPrice *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetMaxGlobalShortSize(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetMaxLeverage(opts *bind.TransactOpts, _maxLeverage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetPriceFeed(opts *bind.TransactOpts, _priceFeed common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetTokenConfig(opts *bind.TransactOpts, _token common.Address, _tokenDecimals *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetUsdgAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetVaultUtils(opts *bind.TransactOpts, _vaultUtils common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) Swap(opts *bind.TransactOpts, _tokenIn common.Address, _tokenOut common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) UpdateCumulativeFundingRate(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) UpgradeVault(opts *bind.TransactOpts, _newVault common.Address, _token common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) WithdrawFees(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
- type VaultTransactorRaw
- type VaultTransactorSession
- func (_Vault *VaultTransactorSession) AddRouter(_router common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) ClearTokenConfig(_token common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) DecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) IncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) RemoveRouter(_router common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetErrorController(_errorController common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- type VaultUpdateFundingRate
- type VaultUpdateFundingRateIterator
- type VaultUpdatePnl
- type VaultUpdatePnlIterator
- type VaultUpdatePosition
- type VaultUpdatePositionIterator
Constants ¶
This section is empty.
Variables ¶
var VaultABI = VaultMetaData.ABI
VaultABI is the input ABI used to generate the binding from. Deprecated: Use VaultMetaData.ABI instead.
var VaultMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"BASIS_POINTS_DIVISOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"FUNDING_RATE_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_FEE_BASIS_POINTS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_FUNDING_RATE_FACTOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_LIQUIDATION_FEE_USD\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MIN_FUNDING_RATE_INTERVAL\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MIN_LEVERAGE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PRICE_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"USDG_DECIMALS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addRouter\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"adjustForDecimals\",\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokenDiv\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenMul\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allWhitelistedTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allWhitelistedTokensLength\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approvedRouters\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"bufferAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"buyUSDG\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"clearTokenConfig\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cumulativeFundingRates\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decreasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"directPoolDeposit\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"errorController\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"errors\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"feeReserves\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fundingInterval\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fundingRateFactor\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDelta\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getEntryFundingRate\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFeeBasisPoints\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_feeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_taxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_increment\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFundingFee\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_entryFundingRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGlobalShortDelta\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMaxPrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMinPrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextAveragePrice\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_nextPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextFundingRate\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextGlobalShortAveragePrice\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_nextPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionDelta\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionFee\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionKey\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getPositionLeverage\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionCollateral\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionCollateralUsd\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTargetUsdgAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getUtilisation\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"globalShortAveragePrices\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"globalShortSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"guaranteedUsd\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasDynamicFees\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inManagerMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inPrivateLiquidationMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"includeAmmPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdg\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_priceFeed\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_liquidationFeeUsd\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_fundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableFundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isInitialized\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isLeverageEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isLiquidator\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isManager\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSwapEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lastFundingTimes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"liquidatePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"liquidationFeeUsd\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"marginFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxGasPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxGlobalShortSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxLeverage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxUsdgAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minProfitBasisPoints\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minProfitTime\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mintBurnFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"poolAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"positions\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"internalType\":\"int256\"},{\"name\":\"lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"priceFeed\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeRouter\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"reservedAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"router\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sellUSDG\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setBufferAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setError\",\"inputs\":[{\"name\":\"_errorCode\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_error\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setErrorController\",\"inputs\":[{\"name\":\"_errorController\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFees\",\"inputs\":[{\"name\":\"_taxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableTaxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_mintBurnFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_swapFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableSwapFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_marginFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_liquidationFeeUsd\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minProfitTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_hasDynamicFees\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFundingRate\",\"inputs\":[{\"name\":\"_fundingInterval\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_fundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableFundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInManagerMode\",\"inputs\":[{\"name\":\"_inManagerMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInPrivateLiquidationMode\",\"inputs\":[{\"name\":\"_inPrivateLiquidationMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setIsLeverageEnabled\",\"inputs\":[{\"name\":\"_isLeverageEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setIsSwapEnabled\",\"inputs\":[{\"name\":\"_isSwapEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setLiquidator\",\"inputs\":[{\"name\":\"_liquidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setManager\",\"inputs\":[{\"name\":\"_manager\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isManager\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxGasPrice\",\"inputs\":[{\"name\":\"_maxGasPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxGlobalShortSize\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxLeverage\",\"inputs\":[{\"name\":\"_maxLeverage\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPriceFeed\",\"inputs\":[{\"name\":\"_priceFeed\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTokenConfig\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenDecimals\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokenWeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minProfitBps\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_maxUsdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isStable\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_isShortable\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setUsdgAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setVaultUtils\",\"inputs\":[{\"name\":\"_vaultUtils\",\"type\":\"address\",\"internalType\":\"contractIVaultUtils\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"shortableTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableFundingRateFactor\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableSwapFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableTaxBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"swap\",\"inputs\":[{\"name\":\"_tokenIn\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swapFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"taxBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenBalances\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenDecimals\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenToUsdMin\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenWeights\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalTokenWeights\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateCumulativeFundingRate\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeVault\",\"inputs\":[{\"name\":\"_newVault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"usdToToken\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdToTokenMax\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdToTokenMin\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdg\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdgAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"useSwapPricing\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validateLiquidation\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_raise\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"vaultUtils\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIVaultUtils\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"whitelistedTokenCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"whitelistedTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdrawFees\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"BuyUSDG\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ClosePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CollectMarginFees\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"feeUsd\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeTokens\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CollectSwapFees\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"feeUsd\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeTokens\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseGuaranteedUsd\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreasePoolAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreasePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"price\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseReservedAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseUsdgAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DirectPoolDeposit\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseGuaranteedUsd\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreasePoolAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreasePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"price\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseReservedAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseUsdgAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"LiquidatePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"},{\"name\":\"markPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SellUSDG\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"tokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Swap\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenIn\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenOut\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOut\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOutAfterFees\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdateFundingRate\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"fundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdatePnl\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"hasProfit\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"delta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdatePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"},{\"name\":\"markPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}
VaultMetaData contains all meta data concerning the Vault contract.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct { VaultCaller // Read-only binding to the contract VaultTransactor // Write-only binding to the contract VaultFilterer // Log filterer for contract events }
Vault is an auto generated Go binding around an Ethereum contract.
type VaultBuyUSDG ¶
type VaultBuyUSDG struct { Account common.Address Token common.Address TokenAmount *big.Int UsdgAmount *big.Int FeeBasisPoints *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultBuyUSDG represents a BuyUSDG event raised by the Vault contract.
type VaultBuyUSDGIterator ¶
type VaultBuyUSDGIterator struct { Event *VaultBuyUSDG // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultBuyUSDGIterator is returned from FilterBuyUSDG and is used to iterate over the raw logs and unpacked data for BuyUSDG events raised by the Vault contract.
func (*VaultBuyUSDGIterator) Close ¶
func (it *VaultBuyUSDGIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultBuyUSDGIterator) Error ¶
func (it *VaultBuyUSDGIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultBuyUSDGIterator) Next ¶
func (it *VaultBuyUSDGIterator) 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 VaultCaller ¶
type VaultCaller struct {
// contains filtered or unexported fields
}
VaultCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVaultCaller ¶
func NewVaultCaller(address common.Address, caller bind.ContractCaller) (*VaultCaller, error)
NewVaultCaller creates a new read-only instance of Vault, bound to a specific deployed contract.
func (*VaultCaller) AdjustForDecimals ¶
func (_Vault *VaultCaller) AdjustForDecimals(opts *bind.CallOpts, _amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)
AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.
Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)
func (*VaultCaller) AllWhitelistedTokens ¶
func (_Vault *VaultCaller) AllWhitelistedTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.
Solidity: function allWhitelistedTokens(uint256 ) view returns(address)
func (*VaultCaller) AllWhitelistedTokensLength ¶
AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.
Solidity: function allWhitelistedTokensLength() view returns(uint256)
func (*VaultCaller) ApprovedRouters ¶
func (_Vault *VaultCaller) ApprovedRouters(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.
Solidity: function approvedRouters(address , address ) view returns(bool)
func (*VaultCaller) BASISPOINTSDIVISOR ¶
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*VaultCaller) BufferAmounts ¶
func (_Vault *VaultCaller) BufferAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.
Solidity: function bufferAmounts(address ) view returns(uint256)
func (*VaultCaller) CumulativeFundingRates ¶
func (_Vault *VaultCaller) CumulativeFundingRates(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.
Solidity: function cumulativeFundingRates(address ) view returns(uint256)
func (*VaultCaller) ErrorController ¶
ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.
Solidity: function errorController() view returns(address)
func (*VaultCaller) Errors ¶
Errors is a free data retrieval call binding the contract method 0xfed1a606.
Solidity: function errors(uint256 ) view returns(string)
func (*VaultCaller) FUNDINGRATEPRECISION ¶
FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.
Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)
func (*VaultCaller) FeeReserves ¶
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*VaultCaller) FundingInterval ¶
FundingInterval is a free data retrieval call binding the contract method 0x9849e412.
Solidity: function fundingInterval() view returns(uint256)
func (*VaultCaller) FundingRateFactor ¶
FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.
Solidity: function fundingRateFactor() view returns(uint256)
func (*VaultCaller) GetDelta ¶
func (_Vault *VaultCaller) GetDelta(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)
GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.
Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)
func (*VaultCaller) GetEntryFundingRate ¶
func (_Vault *VaultCaller) GetEntryFundingRate(opts *bind.CallOpts, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.
Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultCaller) GetFeeBasisPoints ¶
func (_Vault *VaultCaller) GetFeeBasisPoints(opts *bind.CallOpts, _token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.
Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)
func (*VaultCaller) GetFundingFee ¶
func (_Vault *VaultCaller) GetFundingFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)
GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.
Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)
func (*VaultCaller) GetGlobalShortDelta ¶
func (_Vault *VaultCaller) GetGlobalShortDelta(opts *bind.CallOpts, _token common.Address) (bool, *big.Int, error)
GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.
Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)
func (*VaultCaller) GetMaxPrice ¶
func (_Vault *VaultCaller) GetMaxPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.
Solidity: function getMaxPrice(address _token) view returns(uint256)
func (*VaultCaller) GetMinPrice ¶
func (_Vault *VaultCaller) GetMinPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.
Solidity: function getMinPrice(address _token) view returns(uint256)
func (*VaultCaller) GetNextAveragePrice ¶
func (_Vault *VaultCaller) GetNextAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)
GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.
Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)
func (*VaultCaller) GetNextFundingRate ¶
func (_Vault *VaultCaller) GetNextFundingRate(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.
Solidity: function getNextFundingRate(address _token) view returns(uint256)
func (*VaultCaller) GetNextGlobalShortAveragePrice ¶
func (_Vault *VaultCaller) GetNextGlobalShortAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)
GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.
Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)
func (*VaultCaller) GetPosition ¶
func (_Vault *VaultCaller) GetPosition(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)
GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.
Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)
func (*VaultCaller) GetPositionDelta ¶
func (_Vault *VaultCaller) GetPositionDelta(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)
GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.
Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)
func (*VaultCaller) GetPositionFee ¶
func (_Vault *VaultCaller) GetPositionFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)
GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.
Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)
func (*VaultCaller) GetPositionKey ¶
func (_Vault *VaultCaller) GetPositionKey(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)
GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.
Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)
func (*VaultCaller) GetPositionLeverage ¶
func (_Vault *VaultCaller) GetPositionLeverage(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.
Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultCaller) GetRedemptionAmount ¶
func (_Vault *VaultCaller) GetRedemptionAmount(opts *bind.CallOpts, _token common.Address, _usdgAmount *big.Int) (*big.Int, error)
GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.
Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)
func (*VaultCaller) GetRedemptionCollateral ¶
func (_Vault *VaultCaller) GetRedemptionCollateral(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.
Solidity: function getRedemptionCollateral(address _token) view returns(uint256)
func (*VaultCaller) GetRedemptionCollateralUsd ¶
func (_Vault *VaultCaller) GetRedemptionCollateralUsd(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.
Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)
func (*VaultCaller) GetTargetUsdgAmount ¶
func (_Vault *VaultCaller) GetTargetUsdgAmount(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.
Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)
func (*VaultCaller) GetUtilisation ¶
func (_Vault *VaultCaller) GetUtilisation(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.
Solidity: function getUtilisation(address _token) view returns(uint256)
func (*VaultCaller) GlobalShortAveragePrices ¶
func (_Vault *VaultCaller) GlobalShortAveragePrices(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.
Solidity: function globalShortAveragePrices(address ) view returns(uint256)
func (*VaultCaller) GlobalShortSizes ¶
func (_Vault *VaultCaller) GlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.
Solidity: function globalShortSizes(address ) view returns(uint256)
func (*VaultCaller) Gov ¶
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*VaultCaller) GuaranteedUsd ¶
func (_Vault *VaultCaller) GuaranteedUsd(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.
Solidity: function guaranteedUsd(address ) view returns(uint256)
func (*VaultCaller) HasDynamicFees ¶
func (_Vault *VaultCaller) HasDynamicFees(opts *bind.CallOpts) (bool, error)
HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.
Solidity: function hasDynamicFees() view returns(bool)
func (*VaultCaller) InManagerMode ¶
func (_Vault *VaultCaller) InManagerMode(opts *bind.CallOpts) (bool, error)
InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.
Solidity: function inManagerMode() view returns(bool)
func (*VaultCaller) InPrivateLiquidationMode ¶
func (_Vault *VaultCaller) InPrivateLiquidationMode(opts *bind.CallOpts) (bool, error)
InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.
Solidity: function inPrivateLiquidationMode() view returns(bool)
func (*VaultCaller) IncludeAmmPrice ¶
func (_Vault *VaultCaller) IncludeAmmPrice(opts *bind.CallOpts) (bool, error)
IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.
Solidity: function includeAmmPrice() view returns(bool)
func (*VaultCaller) IsInitialized ¶
func (_Vault *VaultCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*VaultCaller) IsLeverageEnabled ¶
func (_Vault *VaultCaller) IsLeverageEnabled(opts *bind.CallOpts) (bool, error)
IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.
Solidity: function isLeverageEnabled() view returns(bool)
func (*VaultCaller) IsLiquidator ¶
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*VaultCaller) IsManager ¶
IsManager is a free data retrieval call binding the contract method 0xf3ae2415.
Solidity: function isManager(address ) view returns(bool)
func (*VaultCaller) IsSwapEnabled ¶
func (_Vault *VaultCaller) IsSwapEnabled(opts *bind.CallOpts) (bool, error)
IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.
Solidity: function isSwapEnabled() view returns(bool)
func (*VaultCaller) LastFundingTimes ¶
func (_Vault *VaultCaller) LastFundingTimes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.
Solidity: function lastFundingTimes(address ) view returns(uint256)
func (*VaultCaller) LiquidationFeeUsd ¶
LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.
Solidity: function liquidationFeeUsd() view returns(uint256)
func (*VaultCaller) MAXFEEBASISPOINTS ¶
MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.
Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)
func (*VaultCaller) MAXFUNDINGRATEFACTOR ¶
MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.
Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)
func (*VaultCaller) MAXLIQUIDATIONFEEUSD ¶
MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.
Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)
func (*VaultCaller) MINFUNDINGRATEINTERVAL ¶
MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.
Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)
func (*VaultCaller) MINLEVERAGE ¶
MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.
Solidity: function MIN_LEVERAGE() view returns(uint256)
func (*VaultCaller) MarginFeeBasisPoints ¶
MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.
Solidity: function marginFeeBasisPoints() view returns(uint256)
func (*VaultCaller) MaxGasPrice ¶
MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.
Solidity: function maxGasPrice() view returns(uint256)
func (*VaultCaller) MaxGlobalShortSizes ¶
func (_Vault *VaultCaller) MaxGlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*VaultCaller) MaxLeverage ¶
MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.
Solidity: function maxLeverage() view returns(uint256)
func (*VaultCaller) MaxUsdgAmounts ¶
func (_Vault *VaultCaller) MaxUsdgAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.
Solidity: function maxUsdgAmounts(address ) view returns(uint256)
func (*VaultCaller) MinProfitBasisPoints ¶
func (_Vault *VaultCaller) MinProfitBasisPoints(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.
Solidity: function minProfitBasisPoints(address ) view returns(uint256)
func (*VaultCaller) MinProfitTime ¶
MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.
Solidity: function minProfitTime() view returns(uint256)
func (*VaultCaller) MintBurnFeeBasisPoints ¶
MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.
Solidity: function mintBurnFeeBasisPoints() view returns(uint256)
func (*VaultCaller) PRICEPRECISION ¶
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*VaultCaller) PoolAmounts ¶
PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.
Solidity: function poolAmounts(address ) view returns(uint256)
func (*VaultCaller) Positions ¶
func (_Vault *VaultCaller) Positions(opts *bind.CallOpts, arg0 [32]byte) (struct { Size *big.Int Collateral *big.Int AveragePrice *big.Int EntryFundingRate *big.Int ReserveAmount *big.Int RealisedPnl *big.Int LastIncreasedTime *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x514ea4bf.
Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)
func (*VaultCaller) PriceFeed ¶
PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.
Solidity: function priceFeed() view returns(address)
func (*VaultCaller) ReservedAmounts ¶
func (_Vault *VaultCaller) ReservedAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.
Solidity: function reservedAmounts(address ) view returns(uint256)
func (*VaultCaller) Router ¶
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*VaultCaller) ShortableTokens ¶
ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.
Solidity: function shortableTokens(address ) view returns(bool)
func (*VaultCaller) StableFundingRateFactor ¶
StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.
Solidity: function stableFundingRateFactor() view returns(uint256)
func (*VaultCaller) StableSwapFeeBasisPoints ¶
StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.
Solidity: function stableSwapFeeBasisPoints() view returns(uint256)
func (*VaultCaller) StableTaxBasisPoints ¶
StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.
Solidity: function stableTaxBasisPoints() view returns(uint256)
func (*VaultCaller) StableTokens ¶
StableTokens is a free data retrieval call binding the contract method 0x42b60b03.
Solidity: function stableTokens(address ) view returns(bool)
func (*VaultCaller) SwapFeeBasisPoints ¶
SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.
Solidity: function swapFeeBasisPoints() view returns(uint256)
func (*VaultCaller) TaxBasisPoints ¶
TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.
Solidity: function taxBasisPoints() view returns(uint256)
func (*VaultCaller) TokenBalances ¶
func (_Vault *VaultCaller) TokenBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.
Solidity: function tokenBalances(address ) view returns(uint256)
func (*VaultCaller) TokenDecimals ¶
func (_Vault *VaultCaller) TokenDecimals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint256)
func (*VaultCaller) TokenToUsdMin ¶
func (_Vault *VaultCaller) TokenToUsdMin(opts *bind.CallOpts, _token common.Address, _tokenAmount *big.Int) (*big.Int, error)
TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.
Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)
func (*VaultCaller) TokenWeights ¶
TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.
Solidity: function tokenWeights(address ) view returns(uint256)
func (*VaultCaller) TotalTokenWeights ¶
TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.
Solidity: function totalTokenWeights() view returns(uint256)
func (*VaultCaller) USDGDECIMALS ¶
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
func (*VaultCaller) UsdToToken ¶
func (_Vault *VaultCaller) UsdToToken(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)
UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.
Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)
func (*VaultCaller) UsdToTokenMax ¶
func (_Vault *VaultCaller) UsdToTokenMax(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.
Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultCaller) UsdToTokenMin ¶
func (_Vault *VaultCaller) UsdToTokenMin(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.
Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultCaller) Usdg ¶
Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.
Solidity: function usdg() view returns(address)
func (*VaultCaller) UsdgAmounts ¶
UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.
Solidity: function usdgAmounts(address ) view returns(uint256)
func (*VaultCaller) UseSwapPricing ¶
func (_Vault *VaultCaller) UseSwapPricing(opts *bind.CallOpts) (bool, error)
UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.
Solidity: function useSwapPricing() view returns(bool)
func (*VaultCaller) ValidateLiquidation ¶
func (_Vault *VaultCaller) ValidateLiquidation(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)
ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.
Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)
func (*VaultCaller) VaultUtils ¶
VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.
Solidity: function vaultUtils() view returns(address)
func (*VaultCaller) WhitelistedTokenCount ¶
WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.
Solidity: function whitelistedTokenCount() view returns(uint256)
func (*VaultCaller) WhitelistedTokens ¶
func (_Vault *VaultCaller) WhitelistedTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
type VaultCallerRaw ¶
type VaultCallerRaw struct {
Contract *VaultCaller // Generic read-only contract binding to access the raw methods on
}
VaultCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VaultCallerRaw) Call ¶
func (_Vault *VaultCallerRaw) 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 VaultCallerSession ¶
type VaultCallerSession struct { Contract *VaultCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VaultCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VaultCallerSession) AdjustForDecimals ¶
func (_Vault *VaultCallerSession) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)
AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.
Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)
func (*VaultCallerSession) AllWhitelistedTokens ¶
AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.
Solidity: function allWhitelistedTokens(uint256 ) view returns(address)
func (*VaultCallerSession) AllWhitelistedTokensLength ¶
func (_Vault *VaultCallerSession) AllWhitelistedTokensLength() (*big.Int, error)
AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.
Solidity: function allWhitelistedTokensLength() view returns(uint256)
func (*VaultCallerSession) ApprovedRouters ¶
func (_Vault *VaultCallerSession) ApprovedRouters(arg0 common.Address, arg1 common.Address) (bool, error)
ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.
Solidity: function approvedRouters(address , address ) view returns(bool)
func (*VaultCallerSession) BASISPOINTSDIVISOR ¶
func (_Vault *VaultCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*VaultCallerSession) BufferAmounts ¶
BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.
Solidity: function bufferAmounts(address ) view returns(uint256)
func (*VaultCallerSession) CumulativeFundingRates ¶
CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.
Solidity: function cumulativeFundingRates(address ) view returns(uint256)
func (*VaultCallerSession) ErrorController ¶
func (_Vault *VaultCallerSession) ErrorController() (common.Address, error)
ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.
Solidity: function errorController() view returns(address)
func (*VaultCallerSession) Errors ¶
func (_Vault *VaultCallerSession) Errors(arg0 *big.Int) (string, error)
Errors is a free data retrieval call binding the contract method 0xfed1a606.
Solidity: function errors(uint256 ) view returns(string)
func (*VaultCallerSession) FUNDINGRATEPRECISION ¶
func (_Vault *VaultCallerSession) FUNDINGRATEPRECISION() (*big.Int, error)
FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.
Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)
func (*VaultCallerSession) FeeReserves ¶
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*VaultCallerSession) FundingInterval ¶
func (_Vault *VaultCallerSession) FundingInterval() (*big.Int, error)
FundingInterval is a free data retrieval call binding the contract method 0x9849e412.
Solidity: function fundingInterval() view returns(uint256)
func (*VaultCallerSession) FundingRateFactor ¶
func (_Vault *VaultCallerSession) FundingRateFactor() (*big.Int, error)
FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.
Solidity: function fundingRateFactor() view returns(uint256)
func (*VaultCallerSession) GetDelta ¶
func (_Vault *VaultCallerSession) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)
GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.
Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)
func (*VaultCallerSession) GetEntryFundingRate ¶
func (_Vault *VaultCallerSession) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.
Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultCallerSession) GetFeeBasisPoints ¶
func (_Vault *VaultCallerSession) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.
Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)
func (*VaultCallerSession) GetFundingFee ¶
func (_Vault *VaultCallerSession) GetFundingFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)
GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.
Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)
func (*VaultCallerSession) GetGlobalShortDelta ¶
func (_Vault *VaultCallerSession) GetGlobalShortDelta(_token common.Address) (bool, *big.Int, error)
GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.
Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)
func (*VaultCallerSession) GetMaxPrice ¶
GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.
Solidity: function getMaxPrice(address _token) view returns(uint256)
func (*VaultCallerSession) GetMinPrice ¶
GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.
Solidity: function getMinPrice(address _token) view returns(uint256)
func (*VaultCallerSession) GetNextAveragePrice ¶
func (_Vault *VaultCallerSession) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)
GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.
Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)
func (*VaultCallerSession) GetNextFundingRate ¶
GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.
Solidity: function getNextFundingRate(address _token) view returns(uint256)
func (*VaultCallerSession) GetNextGlobalShortAveragePrice ¶
func (_Vault *VaultCallerSession) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)
GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.
Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)
func (*VaultCallerSession) GetPosition ¶
func (_Vault *VaultCallerSession) GetPosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)
GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.
Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)
func (*VaultCallerSession) GetPositionDelta ¶
func (_Vault *VaultCallerSession) GetPositionDelta(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)
GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.
Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)
func (*VaultCallerSession) GetPositionFee ¶
func (_Vault *VaultCallerSession) GetPositionFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)
GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.
Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)
func (*VaultCallerSession) GetPositionKey ¶
func (_Vault *VaultCallerSession) GetPositionKey(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)
GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.
Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)
func (*VaultCallerSession) GetPositionLeverage ¶
func (_Vault *VaultCallerSession) GetPositionLeverage(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.
Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultCallerSession) GetRedemptionAmount ¶
func (_Vault *VaultCallerSession) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)
GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.
Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)
func (*VaultCallerSession) GetRedemptionCollateral ¶
GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.
Solidity: function getRedemptionCollateral(address _token) view returns(uint256)
func (*VaultCallerSession) GetRedemptionCollateralUsd ¶
func (_Vault *VaultCallerSession) GetRedemptionCollateralUsd(_token common.Address) (*big.Int, error)
GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.
Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)
func (*VaultCallerSession) GetTargetUsdgAmount ¶
GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.
Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)
func (*VaultCallerSession) GetUtilisation ¶
GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.
Solidity: function getUtilisation(address _token) view returns(uint256)
func (*VaultCallerSession) GlobalShortAveragePrices ¶
GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.
Solidity: function globalShortAveragePrices(address ) view returns(uint256)
func (*VaultCallerSession) GlobalShortSizes ¶
GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.
Solidity: function globalShortSizes(address ) view returns(uint256)
func (*VaultCallerSession) Gov ¶
func (_Vault *VaultCallerSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*VaultCallerSession) GuaranteedUsd ¶
GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.
Solidity: function guaranteedUsd(address ) view returns(uint256)
func (*VaultCallerSession) HasDynamicFees ¶
func (_Vault *VaultCallerSession) HasDynamicFees() (bool, error)
HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.
Solidity: function hasDynamicFees() view returns(bool)
func (*VaultCallerSession) InManagerMode ¶
func (_Vault *VaultCallerSession) InManagerMode() (bool, error)
InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.
Solidity: function inManagerMode() view returns(bool)
func (*VaultCallerSession) InPrivateLiquidationMode ¶
func (_Vault *VaultCallerSession) InPrivateLiquidationMode() (bool, error)
InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.
Solidity: function inPrivateLiquidationMode() view returns(bool)
func (*VaultCallerSession) IncludeAmmPrice ¶
func (_Vault *VaultCallerSession) IncludeAmmPrice() (bool, error)
IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.
Solidity: function includeAmmPrice() view returns(bool)
func (*VaultCallerSession) IsInitialized ¶
func (_Vault *VaultCallerSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*VaultCallerSession) IsLeverageEnabled ¶
func (_Vault *VaultCallerSession) IsLeverageEnabled() (bool, error)
IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.
Solidity: function isLeverageEnabled() view returns(bool)
func (*VaultCallerSession) IsLiquidator ¶
func (_Vault *VaultCallerSession) IsLiquidator(arg0 common.Address) (bool, error)
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*VaultCallerSession) IsManager ¶
func (_Vault *VaultCallerSession) IsManager(arg0 common.Address) (bool, error)
IsManager is a free data retrieval call binding the contract method 0xf3ae2415.
Solidity: function isManager(address ) view returns(bool)
func (*VaultCallerSession) IsSwapEnabled ¶
func (_Vault *VaultCallerSession) IsSwapEnabled() (bool, error)
IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.
Solidity: function isSwapEnabled() view returns(bool)
func (*VaultCallerSession) LastFundingTimes ¶
LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.
Solidity: function lastFundingTimes(address ) view returns(uint256)
func (*VaultCallerSession) LiquidationFeeUsd ¶
func (_Vault *VaultCallerSession) LiquidationFeeUsd() (*big.Int, error)
LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.
Solidity: function liquidationFeeUsd() view returns(uint256)
func (*VaultCallerSession) MAXFEEBASISPOINTS ¶
func (_Vault *VaultCallerSession) MAXFEEBASISPOINTS() (*big.Int, error)
MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.
Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)
func (*VaultCallerSession) MAXFUNDINGRATEFACTOR ¶
func (_Vault *VaultCallerSession) MAXFUNDINGRATEFACTOR() (*big.Int, error)
MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.
Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)
func (*VaultCallerSession) MAXLIQUIDATIONFEEUSD ¶
func (_Vault *VaultCallerSession) MAXLIQUIDATIONFEEUSD() (*big.Int, error)
MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.
Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)
func (*VaultCallerSession) MINFUNDINGRATEINTERVAL ¶
func (_Vault *VaultCallerSession) MINFUNDINGRATEINTERVAL() (*big.Int, error)
MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.
Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)
func (*VaultCallerSession) MINLEVERAGE ¶
func (_Vault *VaultCallerSession) MINLEVERAGE() (*big.Int, error)
MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.
Solidity: function MIN_LEVERAGE() view returns(uint256)
func (*VaultCallerSession) MarginFeeBasisPoints ¶
func (_Vault *VaultCallerSession) MarginFeeBasisPoints() (*big.Int, error)
MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.
Solidity: function marginFeeBasisPoints() view returns(uint256)
func (*VaultCallerSession) MaxGasPrice ¶
func (_Vault *VaultCallerSession) MaxGasPrice() (*big.Int, error)
MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.
Solidity: function maxGasPrice() view returns(uint256)
func (*VaultCallerSession) MaxGlobalShortSizes ¶
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*VaultCallerSession) MaxLeverage ¶
func (_Vault *VaultCallerSession) MaxLeverage() (*big.Int, error)
MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.
Solidity: function maxLeverage() view returns(uint256)
func (*VaultCallerSession) MaxUsdgAmounts ¶
MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.
Solidity: function maxUsdgAmounts(address ) view returns(uint256)
func (*VaultCallerSession) MinProfitBasisPoints ¶
MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.
Solidity: function minProfitBasisPoints(address ) view returns(uint256)
func (*VaultCallerSession) MinProfitTime ¶
func (_Vault *VaultCallerSession) MinProfitTime() (*big.Int, error)
MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.
Solidity: function minProfitTime() view returns(uint256)
func (*VaultCallerSession) MintBurnFeeBasisPoints ¶
func (_Vault *VaultCallerSession) MintBurnFeeBasisPoints() (*big.Int, error)
MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.
Solidity: function mintBurnFeeBasisPoints() view returns(uint256)
func (*VaultCallerSession) PRICEPRECISION ¶
func (_Vault *VaultCallerSession) PRICEPRECISION() (*big.Int, error)
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*VaultCallerSession) PoolAmounts ¶
PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.
Solidity: function poolAmounts(address ) view returns(uint256)
func (*VaultCallerSession) Positions ¶
func (_Vault *VaultCallerSession) Positions(arg0 [32]byte) (struct { Size *big.Int Collateral *big.Int AveragePrice *big.Int EntryFundingRate *big.Int ReserveAmount *big.Int RealisedPnl *big.Int LastIncreasedTime *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x514ea4bf.
Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)
func (*VaultCallerSession) PriceFeed ¶
func (_Vault *VaultCallerSession) PriceFeed() (common.Address, error)
PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.
Solidity: function priceFeed() view returns(address)
func (*VaultCallerSession) ReservedAmounts ¶
ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.
Solidity: function reservedAmounts(address ) view returns(uint256)
func (*VaultCallerSession) Router ¶
func (_Vault *VaultCallerSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*VaultCallerSession) ShortableTokens ¶
func (_Vault *VaultCallerSession) ShortableTokens(arg0 common.Address) (bool, error)
ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.
Solidity: function shortableTokens(address ) view returns(bool)
func (*VaultCallerSession) StableFundingRateFactor ¶
func (_Vault *VaultCallerSession) StableFundingRateFactor() (*big.Int, error)
StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.
Solidity: function stableFundingRateFactor() view returns(uint256)
func (*VaultCallerSession) StableSwapFeeBasisPoints ¶
func (_Vault *VaultCallerSession) StableSwapFeeBasisPoints() (*big.Int, error)
StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.
Solidity: function stableSwapFeeBasisPoints() view returns(uint256)
func (*VaultCallerSession) StableTaxBasisPoints ¶
func (_Vault *VaultCallerSession) StableTaxBasisPoints() (*big.Int, error)
StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.
Solidity: function stableTaxBasisPoints() view returns(uint256)
func (*VaultCallerSession) StableTokens ¶
func (_Vault *VaultCallerSession) StableTokens(arg0 common.Address) (bool, error)
StableTokens is a free data retrieval call binding the contract method 0x42b60b03.
Solidity: function stableTokens(address ) view returns(bool)
func (*VaultCallerSession) SwapFeeBasisPoints ¶
func (_Vault *VaultCallerSession) SwapFeeBasisPoints() (*big.Int, error)
SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.
Solidity: function swapFeeBasisPoints() view returns(uint256)
func (*VaultCallerSession) TaxBasisPoints ¶
func (_Vault *VaultCallerSession) TaxBasisPoints() (*big.Int, error)
TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.
Solidity: function taxBasisPoints() view returns(uint256)
func (*VaultCallerSession) TokenBalances ¶
TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.
Solidity: function tokenBalances(address ) view returns(uint256)
func (*VaultCallerSession) TokenDecimals ¶
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint256)
func (*VaultCallerSession) TokenToUsdMin ¶
func (_Vault *VaultCallerSession) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)
TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.
Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)
func (*VaultCallerSession) TokenWeights ¶
TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.
Solidity: function tokenWeights(address ) view returns(uint256)
func (*VaultCallerSession) TotalTokenWeights ¶
func (_Vault *VaultCallerSession) TotalTokenWeights() (*big.Int, error)
TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.
Solidity: function totalTokenWeights() view returns(uint256)
func (*VaultCallerSession) USDGDECIMALS ¶
func (_Vault *VaultCallerSession) USDGDECIMALS() (*big.Int, error)
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
func (*VaultCallerSession) UsdToToken ¶
func (_Vault *VaultCallerSession) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)
UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.
Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)
func (*VaultCallerSession) UsdToTokenMax ¶
func (_Vault *VaultCallerSession) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.
Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultCallerSession) UsdToTokenMin ¶
func (_Vault *VaultCallerSession) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.
Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultCallerSession) Usdg ¶
func (_Vault *VaultCallerSession) Usdg() (common.Address, error)
Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.
Solidity: function usdg() view returns(address)
func (*VaultCallerSession) UsdgAmounts ¶
UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.
Solidity: function usdgAmounts(address ) view returns(uint256)
func (*VaultCallerSession) UseSwapPricing ¶
func (_Vault *VaultCallerSession) UseSwapPricing() (bool, error)
UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.
Solidity: function useSwapPricing() view returns(bool)
func (*VaultCallerSession) ValidateLiquidation ¶
func (_Vault *VaultCallerSession) ValidateLiquidation(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)
ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.
Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)
func (*VaultCallerSession) VaultUtils ¶
func (_Vault *VaultCallerSession) VaultUtils() (common.Address, error)
VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.
Solidity: function vaultUtils() view returns(address)
func (*VaultCallerSession) WhitelistedTokenCount ¶
func (_Vault *VaultCallerSession) WhitelistedTokenCount() (*big.Int, error)
WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.
Solidity: function whitelistedTokenCount() view returns(uint256)
func (*VaultCallerSession) WhitelistedTokens ¶
func (_Vault *VaultCallerSession) WhitelistedTokens(arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
type VaultClosePosition ¶
type VaultClosePosition struct { Key [32]byte Size *big.Int Collateral *big.Int AveragePrice *big.Int EntryFundingRate *big.Int ReserveAmount *big.Int RealisedPnl *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultClosePosition represents a ClosePosition event raised by the Vault contract.
type VaultClosePositionIterator ¶
type VaultClosePositionIterator struct { Event *VaultClosePosition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultClosePositionIterator is returned from FilterClosePosition and is used to iterate over the raw logs and unpacked data for ClosePosition events raised by the Vault contract.
func (*VaultClosePositionIterator) Close ¶
func (it *VaultClosePositionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultClosePositionIterator) Error ¶
func (it *VaultClosePositionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultClosePositionIterator) Next ¶
func (it *VaultClosePositionIterator) 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 VaultCollectMarginFees ¶
type VaultCollectMarginFees struct { Token common.Address FeeUsd *big.Int FeeTokens *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultCollectMarginFees represents a CollectMarginFees event raised by the Vault contract.
type VaultCollectMarginFeesIterator ¶
type VaultCollectMarginFeesIterator struct { Event *VaultCollectMarginFees // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultCollectMarginFeesIterator is returned from FilterCollectMarginFees and is used to iterate over the raw logs and unpacked data for CollectMarginFees events raised by the Vault contract.
func (*VaultCollectMarginFeesIterator) Close ¶
func (it *VaultCollectMarginFeesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultCollectMarginFeesIterator) Error ¶
func (it *VaultCollectMarginFeesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultCollectMarginFeesIterator) Next ¶
func (it *VaultCollectMarginFeesIterator) 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 VaultCollectSwapFees ¶
type VaultCollectSwapFees struct { Token common.Address FeeUsd *big.Int FeeTokens *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultCollectSwapFees represents a CollectSwapFees event raised by the Vault contract.
type VaultCollectSwapFeesIterator ¶
type VaultCollectSwapFeesIterator struct { Event *VaultCollectSwapFees // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultCollectSwapFeesIterator is returned from FilterCollectSwapFees and is used to iterate over the raw logs and unpacked data for CollectSwapFees events raised by the Vault contract.
func (*VaultCollectSwapFeesIterator) Close ¶
func (it *VaultCollectSwapFeesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultCollectSwapFeesIterator) Error ¶
func (it *VaultCollectSwapFeesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultCollectSwapFeesIterator) Next ¶
func (it *VaultCollectSwapFeesIterator) 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 VaultDecreaseGuaranteedUsd ¶
type VaultDecreaseGuaranteedUsd struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDecreaseGuaranteedUsd represents a DecreaseGuaranteedUsd event raised by the Vault contract.
type VaultDecreaseGuaranteedUsdIterator ¶
type VaultDecreaseGuaranteedUsdIterator struct { Event *VaultDecreaseGuaranteedUsd // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDecreaseGuaranteedUsdIterator is returned from FilterDecreaseGuaranteedUsd and is used to iterate over the raw logs and unpacked data for DecreaseGuaranteedUsd events raised by the Vault contract.
func (*VaultDecreaseGuaranteedUsdIterator) Close ¶
func (it *VaultDecreaseGuaranteedUsdIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDecreaseGuaranteedUsdIterator) Error ¶
func (it *VaultDecreaseGuaranteedUsdIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDecreaseGuaranteedUsdIterator) Next ¶
func (it *VaultDecreaseGuaranteedUsdIterator) 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 VaultDecreasePoolAmount ¶
type VaultDecreasePoolAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDecreasePoolAmount represents a DecreasePoolAmount event raised by the Vault contract.
type VaultDecreasePoolAmountIterator ¶
type VaultDecreasePoolAmountIterator struct { Event *VaultDecreasePoolAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDecreasePoolAmountIterator is returned from FilterDecreasePoolAmount and is used to iterate over the raw logs and unpacked data for DecreasePoolAmount events raised by the Vault contract.
func (*VaultDecreasePoolAmountIterator) Close ¶
func (it *VaultDecreasePoolAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDecreasePoolAmountIterator) Error ¶
func (it *VaultDecreasePoolAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDecreasePoolAmountIterator) Next ¶
func (it *VaultDecreasePoolAmountIterator) 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 VaultDecreasePosition ¶
type VaultDecreasePosition struct { Key [32]byte Account common.Address CollateralToken common.Address IndexToken common.Address CollateralDelta *big.Int SizeDelta *big.Int IsLong bool Price *big.Int Fee *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDecreasePosition represents a DecreasePosition event raised by the Vault contract.
type VaultDecreasePositionIterator ¶
type VaultDecreasePositionIterator struct { Event *VaultDecreasePosition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDecreasePositionIterator is returned from FilterDecreasePosition and is used to iterate over the raw logs and unpacked data for DecreasePosition events raised by the Vault contract.
func (*VaultDecreasePositionIterator) Close ¶
func (it *VaultDecreasePositionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDecreasePositionIterator) Error ¶
func (it *VaultDecreasePositionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDecreasePositionIterator) Next ¶
func (it *VaultDecreasePositionIterator) 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 VaultDecreaseReservedAmount ¶
type VaultDecreaseReservedAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDecreaseReservedAmount represents a DecreaseReservedAmount event raised by the Vault contract.
type VaultDecreaseReservedAmountIterator ¶
type VaultDecreaseReservedAmountIterator struct { Event *VaultDecreaseReservedAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDecreaseReservedAmountIterator is returned from FilterDecreaseReservedAmount and is used to iterate over the raw logs and unpacked data for DecreaseReservedAmount events raised by the Vault contract.
func (*VaultDecreaseReservedAmountIterator) Close ¶
func (it *VaultDecreaseReservedAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDecreaseReservedAmountIterator) Error ¶
func (it *VaultDecreaseReservedAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDecreaseReservedAmountIterator) Next ¶
func (it *VaultDecreaseReservedAmountIterator) 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 VaultDecreaseUsdgAmount ¶
type VaultDecreaseUsdgAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDecreaseUsdgAmount represents a DecreaseUsdgAmount event raised by the Vault contract.
type VaultDecreaseUsdgAmountIterator ¶
type VaultDecreaseUsdgAmountIterator struct { Event *VaultDecreaseUsdgAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDecreaseUsdgAmountIterator is returned from FilterDecreaseUsdgAmount and is used to iterate over the raw logs and unpacked data for DecreaseUsdgAmount events raised by the Vault contract.
func (*VaultDecreaseUsdgAmountIterator) Close ¶
func (it *VaultDecreaseUsdgAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDecreaseUsdgAmountIterator) Error ¶
func (it *VaultDecreaseUsdgAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDecreaseUsdgAmountIterator) Next ¶
func (it *VaultDecreaseUsdgAmountIterator) 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 VaultDirectPoolDeposit ¶
type VaultDirectPoolDeposit struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultDirectPoolDeposit represents a DirectPoolDeposit event raised by the Vault contract.
type VaultDirectPoolDepositIterator ¶
type VaultDirectPoolDepositIterator struct { Event *VaultDirectPoolDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultDirectPoolDepositIterator is returned from FilterDirectPoolDeposit and is used to iterate over the raw logs and unpacked data for DirectPoolDeposit events raised by the Vault contract.
func (*VaultDirectPoolDepositIterator) Close ¶
func (it *VaultDirectPoolDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultDirectPoolDepositIterator) Error ¶
func (it *VaultDirectPoolDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultDirectPoolDepositIterator) Next ¶
func (it *VaultDirectPoolDepositIterator) 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 VaultFilterer ¶
type VaultFilterer struct {
// contains filtered or unexported fields
}
VaultFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVaultFilterer ¶
func NewVaultFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultFilterer, error)
NewVaultFilterer creates a new log filterer instance of Vault, bound to a specific deployed contract.
func (*VaultFilterer) FilterBuyUSDG ¶
func (_Vault *VaultFilterer) FilterBuyUSDG(opts *bind.FilterOpts) (*VaultBuyUSDGIterator, error)
FilterBuyUSDG is a free log retrieval operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.
Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)
func (*VaultFilterer) FilterClosePosition ¶
func (_Vault *VaultFilterer) FilterClosePosition(opts *bind.FilterOpts) (*VaultClosePositionIterator, error)
FilterClosePosition is a free log retrieval operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.
Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)
func (*VaultFilterer) FilterCollectMarginFees ¶
func (_Vault *VaultFilterer) FilterCollectMarginFees(opts *bind.FilterOpts) (*VaultCollectMarginFeesIterator, error)
FilterCollectMarginFees is a free log retrieval operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.
Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) FilterCollectSwapFees ¶
func (_Vault *VaultFilterer) FilterCollectSwapFees(opts *bind.FilterOpts) (*VaultCollectSwapFeesIterator, error)
FilterCollectSwapFees is a free log retrieval operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.
Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) FilterDecreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) FilterDecreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultDecreaseGuaranteedUsdIterator, error)
FilterDecreaseGuaranteedUsd is a free log retrieval operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.
Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) FilterDecreasePoolAmount ¶
func (_Vault *VaultFilterer) FilterDecreasePoolAmount(opts *bind.FilterOpts) (*VaultDecreasePoolAmountIterator, error)
FilterDecreasePoolAmount is a free log retrieval operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.
Solidity: event DecreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) FilterDecreasePosition ¶
func (_Vault *VaultFilterer) FilterDecreasePosition(opts *bind.FilterOpts) (*VaultDecreasePositionIterator, error)
FilterDecreasePosition is a free log retrieval operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.
Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) FilterDecreaseReservedAmount ¶
func (_Vault *VaultFilterer) FilterDecreaseReservedAmount(opts *bind.FilterOpts) (*VaultDecreaseReservedAmountIterator, error)
FilterDecreaseReservedAmount is a free log retrieval operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.
Solidity: event DecreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) FilterDecreaseUsdgAmount ¶
func (_Vault *VaultFilterer) FilterDecreaseUsdgAmount(opts *bind.FilterOpts) (*VaultDecreaseUsdgAmountIterator, error)
FilterDecreaseUsdgAmount is a free log retrieval operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.
Solidity: event DecreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) FilterDirectPoolDeposit ¶
func (_Vault *VaultFilterer) FilterDirectPoolDeposit(opts *bind.FilterOpts) (*VaultDirectPoolDepositIterator, error)
FilterDirectPoolDeposit is a free log retrieval operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.
Solidity: event DirectPoolDeposit(address token, uint256 amount)
func (*VaultFilterer) FilterIncreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) FilterIncreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultIncreaseGuaranteedUsdIterator, error)
FilterIncreaseGuaranteedUsd is a free log retrieval operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.
Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) FilterIncreasePoolAmount ¶
func (_Vault *VaultFilterer) FilterIncreasePoolAmount(opts *bind.FilterOpts) (*VaultIncreasePoolAmountIterator, error)
FilterIncreasePoolAmount is a free log retrieval operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.
Solidity: event IncreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) FilterIncreasePosition ¶
func (_Vault *VaultFilterer) FilterIncreasePosition(opts *bind.FilterOpts) (*VaultIncreasePositionIterator, error)
FilterIncreasePosition is a free log retrieval operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.
Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) FilterIncreaseReservedAmount ¶
func (_Vault *VaultFilterer) FilterIncreaseReservedAmount(opts *bind.FilterOpts) (*VaultIncreaseReservedAmountIterator, error)
FilterIncreaseReservedAmount is a free log retrieval operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.
Solidity: event IncreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) FilterIncreaseUsdgAmount ¶
func (_Vault *VaultFilterer) FilterIncreaseUsdgAmount(opts *bind.FilterOpts) (*VaultIncreaseUsdgAmountIterator, error)
FilterIncreaseUsdgAmount is a free log retrieval operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.
Solidity: event IncreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) FilterLiquidatePosition ¶
func (_Vault *VaultFilterer) FilterLiquidatePosition(opts *bind.FilterOpts) (*VaultLiquidatePositionIterator, error)
FilterLiquidatePosition is a free log retrieval operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.
Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
func (*VaultFilterer) FilterSellUSDG ¶
func (_Vault *VaultFilterer) FilterSellUSDG(opts *bind.FilterOpts) (*VaultSellUSDGIterator, error)
FilterSellUSDG is a free log retrieval operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.
Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)
func (*VaultFilterer) FilterSwap ¶
func (_Vault *VaultFilterer) FilterSwap(opts *bind.FilterOpts) (*VaultSwapIterator, error)
FilterSwap is a free log retrieval operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.
Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)
func (*VaultFilterer) FilterUpdateFundingRate ¶
func (_Vault *VaultFilterer) FilterUpdateFundingRate(opts *bind.FilterOpts) (*VaultUpdateFundingRateIterator, error)
FilterUpdateFundingRate is a free log retrieval operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.
Solidity: event UpdateFundingRate(address token, uint256 fundingRate)
func (*VaultFilterer) FilterUpdatePnl ¶
func (_Vault *VaultFilterer) FilterUpdatePnl(opts *bind.FilterOpts) (*VaultUpdatePnlIterator, error)
FilterUpdatePnl is a free log retrieval operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.
Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)
func (*VaultFilterer) FilterUpdatePosition ¶
func (_Vault *VaultFilterer) FilterUpdatePosition(opts *bind.FilterOpts) (*VaultUpdatePositionIterator, error)
FilterUpdatePosition is a free log retrieval operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.
Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
func (*VaultFilterer) ParseBuyUSDG ¶
func (_Vault *VaultFilterer) ParseBuyUSDG(log types.Log) (*VaultBuyUSDG, error)
ParseBuyUSDG is a log parse operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.
Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)
func (*VaultFilterer) ParseClosePosition ¶
func (_Vault *VaultFilterer) ParseClosePosition(log types.Log) (*VaultClosePosition, error)
ParseClosePosition is a log parse operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.
Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)
func (*VaultFilterer) ParseCollectMarginFees ¶
func (_Vault *VaultFilterer) ParseCollectMarginFees(log types.Log) (*VaultCollectMarginFees, error)
ParseCollectMarginFees is a log parse operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.
Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) ParseCollectSwapFees ¶
func (_Vault *VaultFilterer) ParseCollectSwapFees(log types.Log) (*VaultCollectSwapFees, error)
ParseCollectSwapFees is a log parse operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.
Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) ParseDecreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) ParseDecreaseGuaranteedUsd(log types.Log) (*VaultDecreaseGuaranteedUsd, error)
ParseDecreaseGuaranteedUsd is a log parse operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.
Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) ParseDecreasePoolAmount ¶
func (_Vault *VaultFilterer) ParseDecreasePoolAmount(log types.Log) (*VaultDecreasePoolAmount, error)
ParseDecreasePoolAmount is a log parse operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.
Solidity: event DecreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) ParseDecreasePosition ¶
func (_Vault *VaultFilterer) ParseDecreasePosition(log types.Log) (*VaultDecreasePosition, error)
ParseDecreasePosition is a log parse operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.
Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) ParseDecreaseReservedAmount ¶
func (_Vault *VaultFilterer) ParseDecreaseReservedAmount(log types.Log) (*VaultDecreaseReservedAmount, error)
ParseDecreaseReservedAmount is a log parse operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.
Solidity: event DecreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) ParseDecreaseUsdgAmount ¶
func (_Vault *VaultFilterer) ParseDecreaseUsdgAmount(log types.Log) (*VaultDecreaseUsdgAmount, error)
ParseDecreaseUsdgAmount is a log parse operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.
Solidity: event DecreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) ParseDirectPoolDeposit ¶
func (_Vault *VaultFilterer) ParseDirectPoolDeposit(log types.Log) (*VaultDirectPoolDeposit, error)
ParseDirectPoolDeposit is a log parse operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.
Solidity: event DirectPoolDeposit(address token, uint256 amount)
func (*VaultFilterer) ParseIncreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) ParseIncreaseGuaranteedUsd(log types.Log) (*VaultIncreaseGuaranteedUsd, error)
ParseIncreaseGuaranteedUsd is a log parse operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.
Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) ParseIncreasePoolAmount ¶
func (_Vault *VaultFilterer) ParseIncreasePoolAmount(log types.Log) (*VaultIncreasePoolAmount, error)
ParseIncreasePoolAmount is a log parse operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.
Solidity: event IncreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) ParseIncreasePosition ¶
func (_Vault *VaultFilterer) ParseIncreasePosition(log types.Log) (*VaultIncreasePosition, error)
ParseIncreasePosition is a log parse operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.
Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) ParseIncreaseReservedAmount ¶
func (_Vault *VaultFilterer) ParseIncreaseReservedAmount(log types.Log) (*VaultIncreaseReservedAmount, error)
ParseIncreaseReservedAmount is a log parse operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.
Solidity: event IncreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) ParseIncreaseUsdgAmount ¶
func (_Vault *VaultFilterer) ParseIncreaseUsdgAmount(log types.Log) (*VaultIncreaseUsdgAmount, error)
ParseIncreaseUsdgAmount is a log parse operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.
Solidity: event IncreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) ParseLiquidatePosition ¶
func (_Vault *VaultFilterer) ParseLiquidatePosition(log types.Log) (*VaultLiquidatePosition, error)
ParseLiquidatePosition is a log parse operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.
Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
func (*VaultFilterer) ParseSellUSDG ¶
func (_Vault *VaultFilterer) ParseSellUSDG(log types.Log) (*VaultSellUSDG, error)
ParseSellUSDG is a log parse operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.
Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)
func (*VaultFilterer) ParseSwap ¶
func (_Vault *VaultFilterer) ParseSwap(log types.Log) (*VaultSwap, error)
ParseSwap is a log parse operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.
Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)
func (*VaultFilterer) ParseUpdateFundingRate ¶
func (_Vault *VaultFilterer) ParseUpdateFundingRate(log types.Log) (*VaultUpdateFundingRate, error)
ParseUpdateFundingRate is a log parse operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.
Solidity: event UpdateFundingRate(address token, uint256 fundingRate)
func (*VaultFilterer) ParseUpdatePnl ¶
func (_Vault *VaultFilterer) ParseUpdatePnl(log types.Log) (*VaultUpdatePnl, error)
ParseUpdatePnl is a log parse operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.
Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)
func (*VaultFilterer) ParseUpdatePosition ¶
func (_Vault *VaultFilterer) ParseUpdatePosition(log types.Log) (*VaultUpdatePosition, error)
ParseUpdatePosition is a log parse operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.
Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
func (*VaultFilterer) WatchBuyUSDG ¶
func (_Vault *VaultFilterer) WatchBuyUSDG(opts *bind.WatchOpts, sink chan<- *VaultBuyUSDG) (event.Subscription, error)
WatchBuyUSDG is a free log subscription operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.
Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)
func (*VaultFilterer) WatchClosePosition ¶
func (_Vault *VaultFilterer) WatchClosePosition(opts *bind.WatchOpts, sink chan<- *VaultClosePosition) (event.Subscription, error)
WatchClosePosition is a free log subscription operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.
Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)
func (*VaultFilterer) WatchCollectMarginFees ¶
func (_Vault *VaultFilterer) WatchCollectMarginFees(opts *bind.WatchOpts, sink chan<- *VaultCollectMarginFees) (event.Subscription, error)
WatchCollectMarginFees is a free log subscription operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.
Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) WatchCollectSwapFees ¶
func (_Vault *VaultFilterer) WatchCollectSwapFees(opts *bind.WatchOpts, sink chan<- *VaultCollectSwapFees) (event.Subscription, error)
WatchCollectSwapFees is a free log subscription operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.
Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)
func (*VaultFilterer) WatchDecreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) WatchDecreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultDecreaseGuaranteedUsd) (event.Subscription, error)
WatchDecreaseGuaranteedUsd is a free log subscription operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.
Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) WatchDecreasePoolAmount ¶
func (_Vault *VaultFilterer) WatchDecreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreasePoolAmount) (event.Subscription, error)
WatchDecreasePoolAmount is a free log subscription operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.
Solidity: event DecreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) WatchDecreasePosition ¶
func (_Vault *VaultFilterer) WatchDecreasePosition(opts *bind.WatchOpts, sink chan<- *VaultDecreasePosition) (event.Subscription, error)
WatchDecreasePosition is a free log subscription operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.
Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) WatchDecreaseReservedAmount ¶
func (_Vault *VaultFilterer) WatchDecreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreaseReservedAmount) (event.Subscription, error)
WatchDecreaseReservedAmount is a free log subscription operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.
Solidity: event DecreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) WatchDecreaseUsdgAmount ¶
func (_Vault *VaultFilterer) WatchDecreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultDecreaseUsdgAmount) (event.Subscription, error)
WatchDecreaseUsdgAmount is a free log subscription operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.
Solidity: event DecreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) WatchDirectPoolDeposit ¶
func (_Vault *VaultFilterer) WatchDirectPoolDeposit(opts *bind.WatchOpts, sink chan<- *VaultDirectPoolDeposit) (event.Subscription, error)
WatchDirectPoolDeposit is a free log subscription operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.
Solidity: event DirectPoolDeposit(address token, uint256 amount)
func (*VaultFilterer) WatchIncreaseGuaranteedUsd ¶
func (_Vault *VaultFilterer) WatchIncreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultIncreaseGuaranteedUsd) (event.Subscription, error)
WatchIncreaseGuaranteedUsd is a free log subscription operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.
Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)
func (*VaultFilterer) WatchIncreasePoolAmount ¶
func (_Vault *VaultFilterer) WatchIncreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreasePoolAmount) (event.Subscription, error)
WatchIncreasePoolAmount is a free log subscription operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.
Solidity: event IncreasePoolAmount(address token, uint256 amount)
func (*VaultFilterer) WatchIncreasePosition ¶
func (_Vault *VaultFilterer) WatchIncreasePosition(opts *bind.WatchOpts, sink chan<- *VaultIncreasePosition) (event.Subscription, error)
WatchIncreasePosition is a free log subscription operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.
Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
func (*VaultFilterer) WatchIncreaseReservedAmount ¶
func (_Vault *VaultFilterer) WatchIncreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreaseReservedAmount) (event.Subscription, error)
WatchIncreaseReservedAmount is a free log subscription operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.
Solidity: event IncreaseReservedAmount(address token, uint256 amount)
func (*VaultFilterer) WatchIncreaseUsdgAmount ¶
func (_Vault *VaultFilterer) WatchIncreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultIncreaseUsdgAmount) (event.Subscription, error)
WatchIncreaseUsdgAmount is a free log subscription operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.
Solidity: event IncreaseUsdgAmount(address token, uint256 amount)
func (*VaultFilterer) WatchLiquidatePosition ¶
func (_Vault *VaultFilterer) WatchLiquidatePosition(opts *bind.WatchOpts, sink chan<- *VaultLiquidatePosition) (event.Subscription, error)
WatchLiquidatePosition is a free log subscription operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.
Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
func (*VaultFilterer) WatchSellUSDG ¶
func (_Vault *VaultFilterer) WatchSellUSDG(opts *bind.WatchOpts, sink chan<- *VaultSellUSDG) (event.Subscription, error)
WatchSellUSDG is a free log subscription operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.
Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)
func (*VaultFilterer) WatchSwap ¶
func (_Vault *VaultFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *VaultSwap) (event.Subscription, error)
WatchSwap is a free log subscription operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.
Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)
func (*VaultFilterer) WatchUpdateFundingRate ¶
func (_Vault *VaultFilterer) WatchUpdateFundingRate(opts *bind.WatchOpts, sink chan<- *VaultUpdateFundingRate) (event.Subscription, error)
WatchUpdateFundingRate is a free log subscription operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.
Solidity: event UpdateFundingRate(address token, uint256 fundingRate)
func (*VaultFilterer) WatchUpdatePnl ¶
func (_Vault *VaultFilterer) WatchUpdatePnl(opts *bind.WatchOpts, sink chan<- *VaultUpdatePnl) (event.Subscription, error)
WatchUpdatePnl is a free log subscription operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.
Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)
func (*VaultFilterer) WatchUpdatePosition ¶
func (_Vault *VaultFilterer) WatchUpdatePosition(opts *bind.WatchOpts, sink chan<- *VaultUpdatePosition) (event.Subscription, error)
WatchUpdatePosition is a free log subscription operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.
Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
type VaultIncreaseGuaranteedUsd ¶
type VaultIncreaseGuaranteedUsd struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultIncreaseGuaranteedUsd represents a IncreaseGuaranteedUsd event raised by the Vault contract.
type VaultIncreaseGuaranteedUsdIterator ¶
type VaultIncreaseGuaranteedUsdIterator struct { Event *VaultIncreaseGuaranteedUsd // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultIncreaseGuaranteedUsdIterator is returned from FilterIncreaseGuaranteedUsd and is used to iterate over the raw logs and unpacked data for IncreaseGuaranteedUsd events raised by the Vault contract.
func (*VaultIncreaseGuaranteedUsdIterator) Close ¶
func (it *VaultIncreaseGuaranteedUsdIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultIncreaseGuaranteedUsdIterator) Error ¶
func (it *VaultIncreaseGuaranteedUsdIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultIncreaseGuaranteedUsdIterator) Next ¶
func (it *VaultIncreaseGuaranteedUsdIterator) 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 VaultIncreasePoolAmount ¶
type VaultIncreasePoolAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultIncreasePoolAmount represents a IncreasePoolAmount event raised by the Vault contract.
type VaultIncreasePoolAmountIterator ¶
type VaultIncreasePoolAmountIterator struct { Event *VaultIncreasePoolAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultIncreasePoolAmountIterator is returned from FilterIncreasePoolAmount and is used to iterate over the raw logs and unpacked data for IncreasePoolAmount events raised by the Vault contract.
func (*VaultIncreasePoolAmountIterator) Close ¶
func (it *VaultIncreasePoolAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultIncreasePoolAmountIterator) Error ¶
func (it *VaultIncreasePoolAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultIncreasePoolAmountIterator) Next ¶
func (it *VaultIncreasePoolAmountIterator) 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 VaultIncreasePosition ¶
type VaultIncreasePosition struct { Key [32]byte Account common.Address CollateralToken common.Address IndexToken common.Address CollateralDelta *big.Int SizeDelta *big.Int IsLong bool Price *big.Int Fee *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultIncreasePosition represents a IncreasePosition event raised by the Vault contract.
type VaultIncreasePositionIterator ¶
type VaultIncreasePositionIterator struct { Event *VaultIncreasePosition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultIncreasePositionIterator is returned from FilterIncreasePosition and is used to iterate over the raw logs and unpacked data for IncreasePosition events raised by the Vault contract.
func (*VaultIncreasePositionIterator) Close ¶
func (it *VaultIncreasePositionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultIncreasePositionIterator) Error ¶
func (it *VaultIncreasePositionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultIncreasePositionIterator) Next ¶
func (it *VaultIncreasePositionIterator) 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 VaultIncreaseReservedAmount ¶
type VaultIncreaseReservedAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultIncreaseReservedAmount represents a IncreaseReservedAmount event raised by the Vault contract.
type VaultIncreaseReservedAmountIterator ¶
type VaultIncreaseReservedAmountIterator struct { Event *VaultIncreaseReservedAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultIncreaseReservedAmountIterator is returned from FilterIncreaseReservedAmount and is used to iterate over the raw logs and unpacked data for IncreaseReservedAmount events raised by the Vault contract.
func (*VaultIncreaseReservedAmountIterator) Close ¶
func (it *VaultIncreaseReservedAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultIncreaseReservedAmountIterator) Error ¶
func (it *VaultIncreaseReservedAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultIncreaseReservedAmountIterator) Next ¶
func (it *VaultIncreaseReservedAmountIterator) 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 VaultIncreaseUsdgAmount ¶
type VaultIncreaseUsdgAmount struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultIncreaseUsdgAmount represents a IncreaseUsdgAmount event raised by the Vault contract.
type VaultIncreaseUsdgAmountIterator ¶
type VaultIncreaseUsdgAmountIterator struct { Event *VaultIncreaseUsdgAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultIncreaseUsdgAmountIterator is returned from FilterIncreaseUsdgAmount and is used to iterate over the raw logs and unpacked data for IncreaseUsdgAmount events raised by the Vault contract.
func (*VaultIncreaseUsdgAmountIterator) Close ¶
func (it *VaultIncreaseUsdgAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultIncreaseUsdgAmountIterator) Error ¶
func (it *VaultIncreaseUsdgAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultIncreaseUsdgAmountIterator) Next ¶
func (it *VaultIncreaseUsdgAmountIterator) 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 VaultLiquidatePosition ¶
type VaultLiquidatePosition struct { Key [32]byte Account common.Address CollateralToken common.Address IndexToken common.Address IsLong bool Size *big.Int Collateral *big.Int ReserveAmount *big.Int RealisedPnl *big.Int MarkPrice *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultLiquidatePosition represents a LiquidatePosition event raised by the Vault contract.
type VaultLiquidatePositionIterator ¶
type VaultLiquidatePositionIterator struct { Event *VaultLiquidatePosition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultLiquidatePositionIterator is returned from FilterLiquidatePosition and is used to iterate over the raw logs and unpacked data for LiquidatePosition events raised by the Vault contract.
func (*VaultLiquidatePositionIterator) Close ¶
func (it *VaultLiquidatePositionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultLiquidatePositionIterator) Error ¶
func (it *VaultLiquidatePositionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultLiquidatePositionIterator) Next ¶
func (it *VaultLiquidatePositionIterator) 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 VaultRaw ¶
type VaultRaw struct {
Contract *Vault // Generic contract binding to access the raw methods on
}
VaultRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VaultRaw) Call ¶
func (_Vault *VaultRaw) 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 (*VaultRaw) Transact ¶
func (_Vault *VaultRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VaultRaw) Transfer ¶
func (_Vault *VaultRaw) 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 VaultSellUSDG ¶
type VaultSellUSDG struct { Account common.Address Token common.Address UsdgAmount *big.Int TokenAmount *big.Int FeeBasisPoints *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultSellUSDG represents a SellUSDG event raised by the Vault contract.
type VaultSellUSDGIterator ¶
type VaultSellUSDGIterator struct { Event *VaultSellUSDG // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultSellUSDGIterator is returned from FilterSellUSDG and is used to iterate over the raw logs and unpacked data for SellUSDG events raised by the Vault contract.
func (*VaultSellUSDGIterator) Close ¶
func (it *VaultSellUSDGIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultSellUSDGIterator) Error ¶
func (it *VaultSellUSDGIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultSellUSDGIterator) Next ¶
func (it *VaultSellUSDGIterator) 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 VaultSession ¶
type VaultSession struct { Contract *Vault // 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 }
VaultSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VaultSession) AddRouter ¶
func (_Vault *VaultSession) AddRouter(_router common.Address) (*types.Transaction, error)
AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.
Solidity: function addRouter(address _router) returns()
func (*VaultSession) AdjustForDecimals ¶
func (_Vault *VaultSession) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)
AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.
Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)
func (*VaultSession) AllWhitelistedTokens ¶
AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.
Solidity: function allWhitelistedTokens(uint256 ) view returns(address)
func (*VaultSession) AllWhitelistedTokensLength ¶
func (_Vault *VaultSession) AllWhitelistedTokensLength() (*big.Int, error)
AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.
Solidity: function allWhitelistedTokensLength() view returns(uint256)
func (*VaultSession) ApprovedRouters ¶
ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.
Solidity: function approvedRouters(address , address ) view returns(bool)
func (*VaultSession) BASISPOINTSDIVISOR ¶
func (_Vault *VaultSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*VaultSession) BufferAmounts ¶
BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.
Solidity: function bufferAmounts(address ) view returns(uint256)
func (*VaultSession) BuyUSDG ¶
func (_Vault *VaultSession) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.
Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)
func (*VaultSession) ClearTokenConfig ¶
func (_Vault *VaultSession) ClearTokenConfig(_token common.Address) (*types.Transaction, error)
ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.
Solidity: function clearTokenConfig(address _token) returns()
func (*VaultSession) CumulativeFundingRates ¶
CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.
Solidity: function cumulativeFundingRates(address ) view returns(uint256)
func (*VaultSession) DecreasePosition ¶
func (_Vault *VaultSession) DecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.
Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)
func (*VaultSession) DirectPoolDeposit ¶
func (_Vault *VaultSession) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)
DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.
Solidity: function directPoolDeposit(address _token) returns()
func (*VaultSession) ErrorController ¶
func (_Vault *VaultSession) ErrorController() (common.Address, error)
ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.
Solidity: function errorController() view returns(address)
func (*VaultSession) Errors ¶
func (_Vault *VaultSession) Errors(arg0 *big.Int) (string, error)
Errors is a free data retrieval call binding the contract method 0xfed1a606.
Solidity: function errors(uint256 ) view returns(string)
func (*VaultSession) FUNDINGRATEPRECISION ¶
func (_Vault *VaultSession) FUNDINGRATEPRECISION() (*big.Int, error)
FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.
Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)
func (*VaultSession) FeeReserves ¶
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*VaultSession) FundingInterval ¶
func (_Vault *VaultSession) FundingInterval() (*big.Int, error)
FundingInterval is a free data retrieval call binding the contract method 0x9849e412.
Solidity: function fundingInterval() view returns(uint256)
func (*VaultSession) FundingRateFactor ¶
func (_Vault *VaultSession) FundingRateFactor() (*big.Int, error)
FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.
Solidity: function fundingRateFactor() view returns(uint256)
func (*VaultSession) GetDelta ¶
func (_Vault *VaultSession) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)
GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.
Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)
func (*VaultSession) GetEntryFundingRate ¶
func (_Vault *VaultSession) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.
Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultSession) GetFeeBasisPoints ¶
func (_Vault *VaultSession) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.
Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)
func (*VaultSession) GetFundingFee ¶
func (_Vault *VaultSession) GetFundingFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)
GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.
Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)
func (*VaultSession) GetGlobalShortDelta ¶
GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.
Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)
func (*VaultSession) GetMaxPrice ¶
GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.
Solidity: function getMaxPrice(address _token) view returns(uint256)
func (*VaultSession) GetMinPrice ¶
GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.
Solidity: function getMinPrice(address _token) view returns(uint256)
func (*VaultSession) GetNextAveragePrice ¶
func (_Vault *VaultSession) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)
GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.
Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)
func (*VaultSession) GetNextFundingRate ¶
GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.
Solidity: function getNextFundingRate(address _token) view returns(uint256)
func (*VaultSession) GetNextGlobalShortAveragePrice ¶
func (_Vault *VaultSession) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)
GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.
Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)
func (*VaultSession) GetPosition ¶
func (_Vault *VaultSession) GetPosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)
GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.
Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)
func (*VaultSession) GetPositionDelta ¶
func (_Vault *VaultSession) GetPositionDelta(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)
GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.
Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)
func (*VaultSession) GetPositionFee ¶
func (_Vault *VaultSession) GetPositionFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)
GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.
Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)
func (*VaultSession) GetPositionKey ¶
func (_Vault *VaultSession) GetPositionKey(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)
GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.
Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)
func (*VaultSession) GetPositionLeverage ¶
func (_Vault *VaultSession) GetPositionLeverage(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)
GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.
Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)
func (*VaultSession) GetRedemptionAmount ¶
func (_Vault *VaultSession) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)
GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.
Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)
func (*VaultSession) GetRedemptionCollateral ¶
GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.
Solidity: function getRedemptionCollateral(address _token) view returns(uint256)
func (*VaultSession) GetRedemptionCollateralUsd ¶
GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.
Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)
func (*VaultSession) GetTargetUsdgAmount ¶
GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.
Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)
func (*VaultSession) GetUtilisation ¶
GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.
Solidity: function getUtilisation(address _token) view returns(uint256)
func (*VaultSession) GlobalShortAveragePrices ¶
GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.
Solidity: function globalShortAveragePrices(address ) view returns(uint256)
func (*VaultSession) GlobalShortSizes ¶
GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.
Solidity: function globalShortSizes(address ) view returns(uint256)
func (*VaultSession) Gov ¶
func (_Vault *VaultSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*VaultSession) GuaranteedUsd ¶
GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.
Solidity: function guaranteedUsd(address ) view returns(uint256)
func (*VaultSession) HasDynamicFees ¶
func (_Vault *VaultSession) HasDynamicFees() (bool, error)
HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.
Solidity: function hasDynamicFees() view returns(bool)
func (*VaultSession) InManagerMode ¶
func (_Vault *VaultSession) InManagerMode() (bool, error)
InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.
Solidity: function inManagerMode() view returns(bool)
func (*VaultSession) InPrivateLiquidationMode ¶
func (_Vault *VaultSession) InPrivateLiquidationMode() (bool, error)
InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.
Solidity: function inPrivateLiquidationMode() view returns(bool)
func (*VaultSession) IncludeAmmPrice ¶
func (_Vault *VaultSession) IncludeAmmPrice() (bool, error)
IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.
Solidity: function includeAmmPrice() view returns(bool)
func (*VaultSession) IncreasePosition ¶
func (_Vault *VaultSession) IncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.
Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()
func (*VaultSession) Initialize ¶
func (_Vault *VaultSession) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x728cdbca.
Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultSession) IsInitialized ¶
func (_Vault *VaultSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*VaultSession) IsLeverageEnabled ¶
func (_Vault *VaultSession) IsLeverageEnabled() (bool, error)
IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.
Solidity: function isLeverageEnabled() view returns(bool)
func (*VaultSession) IsLiquidator ¶
func (_Vault *VaultSession) IsLiquidator(arg0 common.Address) (bool, error)
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*VaultSession) IsManager ¶
func (_Vault *VaultSession) IsManager(arg0 common.Address) (bool, error)
IsManager is a free data retrieval call binding the contract method 0xf3ae2415.
Solidity: function isManager(address ) view returns(bool)
func (*VaultSession) IsSwapEnabled ¶
func (_Vault *VaultSession) IsSwapEnabled() (bool, error)
IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.
Solidity: function isSwapEnabled() view returns(bool)
func (*VaultSession) LastFundingTimes ¶
LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.
Solidity: function lastFundingTimes(address ) view returns(uint256)
func (*VaultSession) LiquidatePosition ¶
func (_Vault *VaultSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*VaultSession) LiquidationFeeUsd ¶
func (_Vault *VaultSession) LiquidationFeeUsd() (*big.Int, error)
LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.
Solidity: function liquidationFeeUsd() view returns(uint256)
func (*VaultSession) MAXFEEBASISPOINTS ¶
func (_Vault *VaultSession) MAXFEEBASISPOINTS() (*big.Int, error)
MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.
Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)
func (*VaultSession) MAXFUNDINGRATEFACTOR ¶
func (_Vault *VaultSession) MAXFUNDINGRATEFACTOR() (*big.Int, error)
MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.
Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)
func (*VaultSession) MAXLIQUIDATIONFEEUSD ¶
func (_Vault *VaultSession) MAXLIQUIDATIONFEEUSD() (*big.Int, error)
MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.
Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)
func (*VaultSession) MINFUNDINGRATEINTERVAL ¶
func (_Vault *VaultSession) MINFUNDINGRATEINTERVAL() (*big.Int, error)
MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.
Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)
func (*VaultSession) MINLEVERAGE ¶
func (_Vault *VaultSession) MINLEVERAGE() (*big.Int, error)
MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.
Solidity: function MIN_LEVERAGE() view returns(uint256)
func (*VaultSession) MarginFeeBasisPoints ¶
func (_Vault *VaultSession) MarginFeeBasisPoints() (*big.Int, error)
MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.
Solidity: function marginFeeBasisPoints() view returns(uint256)
func (*VaultSession) MaxGasPrice ¶
func (_Vault *VaultSession) MaxGasPrice() (*big.Int, error)
MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.
Solidity: function maxGasPrice() view returns(uint256)
func (*VaultSession) MaxGlobalShortSizes ¶
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*VaultSession) MaxLeverage ¶
func (_Vault *VaultSession) MaxLeverage() (*big.Int, error)
MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.
Solidity: function maxLeverage() view returns(uint256)
func (*VaultSession) MaxUsdgAmounts ¶
MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.
Solidity: function maxUsdgAmounts(address ) view returns(uint256)
func (*VaultSession) MinProfitBasisPoints ¶
MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.
Solidity: function minProfitBasisPoints(address ) view returns(uint256)
func (*VaultSession) MinProfitTime ¶
func (_Vault *VaultSession) MinProfitTime() (*big.Int, error)
MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.
Solidity: function minProfitTime() view returns(uint256)
func (*VaultSession) MintBurnFeeBasisPoints ¶
func (_Vault *VaultSession) MintBurnFeeBasisPoints() (*big.Int, error)
MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.
Solidity: function mintBurnFeeBasisPoints() view returns(uint256)
func (*VaultSession) PRICEPRECISION ¶
func (_Vault *VaultSession) PRICEPRECISION() (*big.Int, error)
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*VaultSession) PoolAmounts ¶
PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.
Solidity: function poolAmounts(address ) view returns(uint256)
func (*VaultSession) Positions ¶
func (_Vault *VaultSession) Positions(arg0 [32]byte) (struct { Size *big.Int Collateral *big.Int AveragePrice *big.Int EntryFundingRate *big.Int ReserveAmount *big.Int RealisedPnl *big.Int LastIncreasedTime *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x514ea4bf.
Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)
func (*VaultSession) PriceFeed ¶
func (_Vault *VaultSession) PriceFeed() (common.Address, error)
PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.
Solidity: function priceFeed() view returns(address)
func (*VaultSession) RemoveRouter ¶
func (_Vault *VaultSession) RemoveRouter(_router common.Address) (*types.Transaction, error)
RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.
Solidity: function removeRouter(address _router) returns()
func (*VaultSession) ReservedAmounts ¶
ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.
Solidity: function reservedAmounts(address ) view returns(uint256)
func (*VaultSession) Router ¶
func (_Vault *VaultSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*VaultSession) SellUSDG ¶
func (_Vault *VaultSession) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.
Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)
func (*VaultSession) SetBufferAmount ¶
func (_Vault *VaultSession) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.
Solidity: function setBufferAmount(address _token, uint256 _amount) returns()
func (*VaultSession) SetError ¶
func (_Vault *VaultSession) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)
SetError is a paid mutator transaction binding the contract method 0x28e67be5.
Solidity: function setError(uint256 _errorCode, string _error) returns()
func (*VaultSession) SetErrorController ¶
func (_Vault *VaultSession) SetErrorController(_errorController common.Address) (*types.Transaction, error)
SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.
Solidity: function setErrorController(address _errorController) returns()
func (*VaultSession) SetFees ¶
func (_Vault *VaultSession) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x40eb3802.
Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()
func (*VaultSession) SetFundingRate ¶
func (_Vault *VaultSession) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.
Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultSession) SetGov ¶
func (_Vault *VaultSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*VaultSession) SetInManagerMode ¶
func (_Vault *VaultSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)
SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.
Solidity: function setInManagerMode(bool _inManagerMode) returns()
func (*VaultSession) SetInPrivateLiquidationMode ¶
func (_Vault *VaultSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)
SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.
Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()
func (*VaultSession) SetIsLeverageEnabled ¶
func (_Vault *VaultSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)
SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.
Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()
func (*VaultSession) SetIsSwapEnabled ¶
func (_Vault *VaultSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)
SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.
Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()
func (*VaultSession) SetLiquidator ¶
func (_Vault *VaultSession) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()
func (*VaultSession) SetManager ¶
func (_Vault *VaultSession) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)
SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.
Solidity: function setManager(address _manager, bool _isManager) returns()
func (*VaultSession) SetMaxGasPrice ¶
func (_Vault *VaultSession) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)
SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.
Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()
func (*VaultSession) SetMaxGlobalShortSize ¶
func (_Vault *VaultSession) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.
Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()
func (*VaultSession) SetMaxLeverage ¶
func (_Vault *VaultSession) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)
SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.
Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()
func (*VaultSession) SetPriceFeed ¶
func (_Vault *VaultSession) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)
SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.
Solidity: function setPriceFeed(address _priceFeed) returns()
func (*VaultSession) SetTokenConfig ¶
func (_Vault *VaultSession) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.
Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()
func (*VaultSession) SetUsdgAmount ¶
func (_Vault *VaultSession) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.
Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()
func (*VaultSession) SetVaultUtils ¶
func (_Vault *VaultSession) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)
SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.
Solidity: function setVaultUtils(address _vaultUtils) returns()
func (*VaultSession) ShortableTokens ¶
func (_Vault *VaultSession) ShortableTokens(arg0 common.Address) (bool, error)
ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.
Solidity: function shortableTokens(address ) view returns(bool)
func (*VaultSession) StableFundingRateFactor ¶
func (_Vault *VaultSession) StableFundingRateFactor() (*big.Int, error)
StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.
Solidity: function stableFundingRateFactor() view returns(uint256)
func (*VaultSession) StableSwapFeeBasisPoints ¶
func (_Vault *VaultSession) StableSwapFeeBasisPoints() (*big.Int, error)
StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.
Solidity: function stableSwapFeeBasisPoints() view returns(uint256)
func (*VaultSession) StableTaxBasisPoints ¶
func (_Vault *VaultSession) StableTaxBasisPoints() (*big.Int, error)
StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.
Solidity: function stableTaxBasisPoints() view returns(uint256)
func (*VaultSession) StableTokens ¶
func (_Vault *VaultSession) StableTokens(arg0 common.Address) (bool, error)
StableTokens is a free data retrieval call binding the contract method 0x42b60b03.
Solidity: function stableTokens(address ) view returns(bool)
func (*VaultSession) Swap ¶
func (_Vault *VaultSession) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x93316212.
Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)
func (*VaultSession) SwapFeeBasisPoints ¶
func (_Vault *VaultSession) SwapFeeBasisPoints() (*big.Int, error)
SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.
Solidity: function swapFeeBasisPoints() view returns(uint256)
func (*VaultSession) TaxBasisPoints ¶
func (_Vault *VaultSession) TaxBasisPoints() (*big.Int, error)
TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.
Solidity: function taxBasisPoints() view returns(uint256)
func (*VaultSession) TokenBalances ¶
TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.
Solidity: function tokenBalances(address ) view returns(uint256)
func (*VaultSession) TokenDecimals ¶
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint256)
func (*VaultSession) TokenToUsdMin ¶
func (_Vault *VaultSession) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)
TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.
Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)
func (*VaultSession) TokenWeights ¶
TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.
Solidity: function tokenWeights(address ) view returns(uint256)
func (*VaultSession) TotalTokenWeights ¶
func (_Vault *VaultSession) TotalTokenWeights() (*big.Int, error)
TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.
Solidity: function totalTokenWeights() view returns(uint256)
func (*VaultSession) USDGDECIMALS ¶
func (_Vault *VaultSession) USDGDECIMALS() (*big.Int, error)
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
func (*VaultSession) UpdateCumulativeFundingRate ¶
func (_Vault *VaultSession) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)
UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.
Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()
func (*VaultSession) UpgradeVault ¶
func (_Vault *VaultSession) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)
UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.
Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()
func (*VaultSession) UsdToToken ¶
func (_Vault *VaultSession) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)
UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.
Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)
func (*VaultSession) UsdToTokenMax ¶
func (_Vault *VaultSession) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.
Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultSession) UsdToTokenMin ¶
func (_Vault *VaultSession) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)
UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.
Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)
func (*VaultSession) Usdg ¶
func (_Vault *VaultSession) Usdg() (common.Address, error)
Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.
Solidity: function usdg() view returns(address)
func (*VaultSession) UsdgAmounts ¶
UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.
Solidity: function usdgAmounts(address ) view returns(uint256)
func (*VaultSession) UseSwapPricing ¶
func (_Vault *VaultSession) UseSwapPricing() (bool, error)
UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.
Solidity: function useSwapPricing() view returns(bool)
func (*VaultSession) ValidateLiquidation ¶
func (_Vault *VaultSession) ValidateLiquidation(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)
ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.
Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)
func (*VaultSession) VaultUtils ¶
func (_Vault *VaultSession) VaultUtils() (common.Address, error)
VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.
Solidity: function vaultUtils() view returns(address)
func (*VaultSession) WhitelistedTokenCount ¶
func (_Vault *VaultSession) WhitelistedTokenCount() (*big.Int, error)
WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.
Solidity: function whitelistedTokenCount() view returns(uint256)
func (*VaultSession) WhitelistedTokens ¶
func (_Vault *VaultSession) WhitelistedTokens(arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
func (*VaultSession) WithdrawFees ¶
func (_Vault *VaultSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)
type VaultSwap ¶
type VaultSwap struct { Account common.Address TokenIn common.Address TokenOut common.Address AmountIn *big.Int AmountOut *big.Int AmountOutAfterFees *big.Int FeeBasisPoints *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultSwap represents a Swap event raised by the Vault contract.
type VaultSwapIterator ¶
type VaultSwapIterator struct { Event *VaultSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Vault contract.
func (*VaultSwapIterator) Close ¶
func (it *VaultSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultSwapIterator) Error ¶
func (it *VaultSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultSwapIterator) Next ¶
func (it *VaultSwapIterator) 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 VaultTransactor ¶
type VaultTransactor struct {
// contains filtered or unexported fields
}
VaultTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVaultTransactor ¶
func NewVaultTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultTransactor, error)
NewVaultTransactor creates a new write-only instance of Vault, bound to a specific deployed contract.
func (*VaultTransactor) AddRouter ¶
func (_Vault *VaultTransactor) AddRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)
AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.
Solidity: function addRouter(address _router) returns()
func (*VaultTransactor) BuyUSDG ¶
func (_Vault *VaultTransactor) BuyUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.
Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)
func (*VaultTransactor) ClearTokenConfig ¶
func (_Vault *VaultTransactor) ClearTokenConfig(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.
Solidity: function clearTokenConfig(address _token) returns()
func (*VaultTransactor) DecreasePosition ¶
func (_Vault *VaultTransactor) DecreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.
Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)
func (*VaultTransactor) DirectPoolDeposit ¶
func (_Vault *VaultTransactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.
Solidity: function directPoolDeposit(address _token) returns()
func (*VaultTransactor) IncreasePosition ¶
func (_Vault *VaultTransactor) IncreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.
Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()
func (*VaultTransactor) Initialize ¶
func (_Vault *VaultTransactor) Initialize(opts *bind.TransactOpts, _router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x728cdbca.
Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultTransactor) LiquidatePosition ¶
func (_Vault *VaultTransactor) LiquidatePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*VaultTransactor) RemoveRouter ¶
func (_Vault *VaultTransactor) RemoveRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)
RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.
Solidity: function removeRouter(address _router) returns()
func (*VaultTransactor) SellUSDG ¶
func (_Vault *VaultTransactor) SellUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.
Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)
func (*VaultTransactor) SetBufferAmount ¶
func (_Vault *VaultTransactor) SetBufferAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.
Solidity: function setBufferAmount(address _token, uint256 _amount) returns()
func (*VaultTransactor) SetError ¶
func (_Vault *VaultTransactor) SetError(opts *bind.TransactOpts, _errorCode *big.Int, _error string) (*types.Transaction, error)
SetError is a paid mutator transaction binding the contract method 0x28e67be5.
Solidity: function setError(uint256 _errorCode, string _error) returns()
func (*VaultTransactor) SetErrorController ¶
func (_Vault *VaultTransactor) SetErrorController(opts *bind.TransactOpts, _errorController common.Address) (*types.Transaction, error)
SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.
Solidity: function setErrorController(address _errorController) returns()
func (*VaultTransactor) SetFees ¶
func (_Vault *VaultTransactor) SetFees(opts *bind.TransactOpts, _taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x40eb3802.
Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()
func (*VaultTransactor) SetFundingRate ¶
func (_Vault *VaultTransactor) SetFundingRate(opts *bind.TransactOpts, _fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.
Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultTransactor) SetGov ¶
func (_Vault *VaultTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*VaultTransactor) SetInManagerMode ¶
func (_Vault *VaultTransactor) SetInManagerMode(opts *bind.TransactOpts, _inManagerMode bool) (*types.Transaction, error)
SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.
Solidity: function setInManagerMode(bool _inManagerMode) returns()
func (*VaultTransactor) SetInPrivateLiquidationMode ¶
func (_Vault *VaultTransactor) SetInPrivateLiquidationMode(opts *bind.TransactOpts, _inPrivateLiquidationMode bool) (*types.Transaction, error)
SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.
Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()
func (*VaultTransactor) SetIsLeverageEnabled ¶
func (_Vault *VaultTransactor) SetIsLeverageEnabled(opts *bind.TransactOpts, _isLeverageEnabled bool) (*types.Transaction, error)
SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.
Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()
func (*VaultTransactor) SetIsSwapEnabled ¶
func (_Vault *VaultTransactor) SetIsSwapEnabled(opts *bind.TransactOpts, _isSwapEnabled bool) (*types.Transaction, error)
SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.
Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()
func (*VaultTransactor) SetLiquidator ¶
func (_Vault *VaultTransactor) SetLiquidator(opts *bind.TransactOpts, _liquidator common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()
func (*VaultTransactor) SetManager ¶
func (_Vault *VaultTransactor) SetManager(opts *bind.TransactOpts, _manager common.Address, _isManager bool) (*types.Transaction, error)
SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.
Solidity: function setManager(address _manager, bool _isManager) returns()
func (*VaultTransactor) SetMaxGasPrice ¶
func (_Vault *VaultTransactor) SetMaxGasPrice(opts *bind.TransactOpts, _maxGasPrice *big.Int) (*types.Transaction, error)
SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.
Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()
func (*VaultTransactor) SetMaxGlobalShortSize ¶
func (_Vault *VaultTransactor) SetMaxGlobalShortSize(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.
Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()
func (*VaultTransactor) SetMaxLeverage ¶
func (_Vault *VaultTransactor) SetMaxLeverage(opts *bind.TransactOpts, _maxLeverage *big.Int) (*types.Transaction, error)
SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.
Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()
func (*VaultTransactor) SetPriceFeed ¶
func (_Vault *VaultTransactor) SetPriceFeed(opts *bind.TransactOpts, _priceFeed common.Address) (*types.Transaction, error)
SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.
Solidity: function setPriceFeed(address _priceFeed) returns()
func (*VaultTransactor) SetTokenConfig ¶
func (_Vault *VaultTransactor) SetTokenConfig(opts *bind.TransactOpts, _token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.
Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()
func (*VaultTransactor) SetUsdgAmount ¶
func (_Vault *VaultTransactor) SetUsdgAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.
Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()
func (*VaultTransactor) SetVaultUtils ¶
func (_Vault *VaultTransactor) SetVaultUtils(opts *bind.TransactOpts, _vaultUtils common.Address) (*types.Transaction, error)
SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.
Solidity: function setVaultUtils(address _vaultUtils) returns()
func (*VaultTransactor) Swap ¶
func (_Vault *VaultTransactor) Swap(opts *bind.TransactOpts, _tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x93316212.
Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)
func (*VaultTransactor) UpdateCumulativeFundingRate ¶
func (_Vault *VaultTransactor) UpdateCumulativeFundingRate(opts *bind.TransactOpts, _collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)
UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.
Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()
func (*VaultTransactor) UpgradeVault ¶
func (_Vault *VaultTransactor) UpgradeVault(opts *bind.TransactOpts, _newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)
UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.
Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()
func (*VaultTransactor) WithdrawFees ¶
func (_Vault *VaultTransactor) WithdrawFees(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)
type VaultTransactorRaw ¶
type VaultTransactorRaw struct {
Contract *VaultTransactor // Generic write-only contract binding to access the raw methods on
}
VaultTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VaultTransactorRaw) Transact ¶
func (_Vault *VaultTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VaultTransactorRaw) Transfer ¶
func (_Vault *VaultTransactorRaw) 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 VaultTransactorSession ¶
type VaultTransactorSession struct { Contract *VaultTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VaultTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VaultTransactorSession) AddRouter ¶
func (_Vault *VaultTransactorSession) AddRouter(_router common.Address) (*types.Transaction, error)
AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.
Solidity: function addRouter(address _router) returns()
func (*VaultTransactorSession) BuyUSDG ¶
func (_Vault *VaultTransactorSession) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.
Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)
func (*VaultTransactorSession) ClearTokenConfig ¶
func (_Vault *VaultTransactorSession) ClearTokenConfig(_token common.Address) (*types.Transaction, error)
ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.
Solidity: function clearTokenConfig(address _token) returns()
func (*VaultTransactorSession) DecreasePosition ¶
func (_Vault *VaultTransactorSession) DecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.
Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)
func (*VaultTransactorSession) DirectPoolDeposit ¶
func (_Vault *VaultTransactorSession) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)
DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.
Solidity: function directPoolDeposit(address _token) returns()
func (*VaultTransactorSession) IncreasePosition ¶
func (_Vault *VaultTransactorSession) IncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.
Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()
func (*VaultTransactorSession) Initialize ¶
func (_Vault *VaultTransactorSession) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x728cdbca.
Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultTransactorSession) LiquidatePosition ¶
func (_Vault *VaultTransactorSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*VaultTransactorSession) RemoveRouter ¶
func (_Vault *VaultTransactorSession) RemoveRouter(_router common.Address) (*types.Transaction, error)
RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.
Solidity: function removeRouter(address _router) returns()
func (*VaultTransactorSession) SellUSDG ¶
func (_Vault *VaultTransactorSession) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)
SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.
Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)
func (*VaultTransactorSession) SetBufferAmount ¶
func (_Vault *VaultTransactorSession) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.
Solidity: function setBufferAmount(address _token, uint256 _amount) returns()
func (*VaultTransactorSession) SetError ¶
func (_Vault *VaultTransactorSession) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)
SetError is a paid mutator transaction binding the contract method 0x28e67be5.
Solidity: function setError(uint256 _errorCode, string _error) returns()
func (*VaultTransactorSession) SetErrorController ¶
func (_Vault *VaultTransactorSession) SetErrorController(_errorController common.Address) (*types.Transaction, error)
SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.
Solidity: function setErrorController(address _errorController) returns()
func (*VaultTransactorSession) SetFees ¶
func (_Vault *VaultTransactorSession) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x40eb3802.
Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()
func (*VaultTransactorSession) SetFundingRate ¶
func (_Vault *VaultTransactorSession) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.
Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()
func (*VaultTransactorSession) SetGov ¶
func (_Vault *VaultTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*VaultTransactorSession) SetInManagerMode ¶
func (_Vault *VaultTransactorSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)
SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.
Solidity: function setInManagerMode(bool _inManagerMode) returns()
func (*VaultTransactorSession) SetInPrivateLiquidationMode ¶
func (_Vault *VaultTransactorSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)
SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.
Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()
func (*VaultTransactorSession) SetIsLeverageEnabled ¶
func (_Vault *VaultTransactorSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)
SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.
Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()
func (*VaultTransactorSession) SetIsSwapEnabled ¶
func (_Vault *VaultTransactorSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)
SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.
Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()
func (*VaultTransactorSession) SetLiquidator ¶
func (_Vault *VaultTransactorSession) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()
func (*VaultTransactorSession) SetManager ¶
func (_Vault *VaultTransactorSession) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)
SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.
Solidity: function setManager(address _manager, bool _isManager) returns()
func (*VaultTransactorSession) SetMaxGasPrice ¶
func (_Vault *VaultTransactorSession) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)
SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.
Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()
func (*VaultTransactorSession) SetMaxGlobalShortSize ¶
func (_Vault *VaultTransactorSession) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.
Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()
func (*VaultTransactorSession) SetMaxLeverage ¶
func (_Vault *VaultTransactorSession) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)
SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.
Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()
func (*VaultTransactorSession) SetPriceFeed ¶
func (_Vault *VaultTransactorSession) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)
SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.
Solidity: function setPriceFeed(address _priceFeed) returns()
func (*VaultTransactorSession) SetTokenConfig ¶
func (_Vault *VaultTransactorSession) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.
Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()
func (*VaultTransactorSession) SetUsdgAmount ¶
func (_Vault *VaultTransactorSession) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)
SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.
Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()
func (*VaultTransactorSession) SetVaultUtils ¶
func (_Vault *VaultTransactorSession) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)
SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.
Solidity: function setVaultUtils(address _vaultUtils) returns()
func (*VaultTransactorSession) Swap ¶
func (_Vault *VaultTransactorSession) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x93316212.
Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)
func (*VaultTransactorSession) UpdateCumulativeFundingRate ¶
func (_Vault *VaultTransactorSession) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)
UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.
Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()
func (*VaultTransactorSession) UpgradeVault ¶
func (_Vault *VaultTransactorSession) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)
UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.
Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()
func (*VaultTransactorSession) WithdrawFees ¶
func (_Vault *VaultTransactorSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)
type VaultUpdateFundingRate ¶
type VaultUpdateFundingRate struct { Token common.Address FundingRate *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultUpdateFundingRate represents a UpdateFundingRate event raised by the Vault contract.
type VaultUpdateFundingRateIterator ¶
type VaultUpdateFundingRateIterator struct { Event *VaultUpdateFundingRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultUpdateFundingRateIterator is returned from FilterUpdateFundingRate and is used to iterate over the raw logs and unpacked data for UpdateFundingRate events raised by the Vault contract.
func (*VaultUpdateFundingRateIterator) Close ¶
func (it *VaultUpdateFundingRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultUpdateFundingRateIterator) Error ¶
func (it *VaultUpdateFundingRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultUpdateFundingRateIterator) Next ¶
func (it *VaultUpdateFundingRateIterator) 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 VaultUpdatePnl ¶
type VaultUpdatePnl struct { Key [32]byte HasProfit bool Delta *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultUpdatePnl represents a UpdatePnl event raised by the Vault contract.
type VaultUpdatePnlIterator ¶
type VaultUpdatePnlIterator struct { Event *VaultUpdatePnl // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultUpdatePnlIterator is returned from FilterUpdatePnl and is used to iterate over the raw logs and unpacked data for UpdatePnl events raised by the Vault contract.
func (*VaultUpdatePnlIterator) Close ¶
func (it *VaultUpdatePnlIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultUpdatePnlIterator) Error ¶
func (it *VaultUpdatePnlIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultUpdatePnlIterator) Next ¶
func (it *VaultUpdatePnlIterator) 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 VaultUpdatePosition ¶
type VaultUpdatePosition struct { Key [32]byte Size *big.Int Collateral *big.Int AveragePrice *big.Int EntryFundingRate *big.Int ReserveAmount *big.Int RealisedPnl *big.Int MarkPrice *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultUpdatePosition represents a UpdatePosition event raised by the Vault contract.
type VaultUpdatePositionIterator ¶
type VaultUpdatePositionIterator struct { Event *VaultUpdatePosition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultUpdatePositionIterator is returned from FilterUpdatePosition and is used to iterate over the raw logs and unpacked data for UpdatePosition events raised by the Vault contract.
func (*VaultUpdatePositionIterator) Close ¶
func (it *VaultUpdatePositionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultUpdatePositionIterator) Error ¶
func (it *VaultUpdatePositionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultUpdatePositionIterator) Next ¶
func (it *VaultUpdatePositionIterator) 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.