xWin IRT (BSC)

xWinIRT

TradeQueue

struct TradeQueue {
  bool nextTrade;
  uint8 tradeType;
  bool ReadyToTrade;
  uint256 nextTradeBlock;
  uint256 AmountToBuy;
  uint256 AmountPerDay;
}

targetToken

contract IERC20Upgradeable targetToken

swapEngine

contract IxWinSwap swapEngine

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

stopLossPrice

stopLossPerc

executors

tradeQueue

maxPerSwap

tradeCycle

initialize

onlyExecutor

updatexWinPriceMaster

update xwin master contract

checkUpkeep

performUpkeep

getTriggerStopLoss

_setStopLossBuy

deposit

deposit

_deposit

systemReTrade

systemTrade

Triggered offchain when there is a signal buy or close-buy

_systemTrade

getVaultValues

Gets the total value of the tokens within the fund, value shown in baseToken

_getVaultValues

getVaultValuesInUSD

Gets the total value of the tokens within the fund, value shown in stablecoinUSDAddr

getStableValues

getTargetValues

withdraw

withdraw

_withdraw

emergencyUnWindPosition

setProperties

setExecutor

setSwapEngine

setStopLossPerc

getUnitPrice

Calculates the price per share

_getUnitPrice

getUnitPriceInUSD

The unitprice of a share of this fund, in stablecoinUSDAddr

GetAmountPerDay

GetAmountToBuy

BuyOrSell

ReadyToTrade

UserShares

isReTrade

Last updated