xWin BBMA (BSC)

xWinBBMA

TradeQueue

struct TradeQueue {
  bool nextTrade;
  uint256 nextTradeBlock;
  uint8 tradeType;
}

targetToken

contract IERC20Upgradeable targetToken

swapEngine

contract IxWinSwap swapEngine

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

executors

mapping(address => bool) executors

tradeQueue

maxPerSwap

tradeCycle

stopLossPrice

takeProfitPrice

stopLossPerc

takeProfitPerc

initialize

onlyExecutor

checkUpkeep

performUpkeep

updatexWinPriceMaster

update xwin master contract

deposit

deposit

_deposit

systemReTrade

systemTrade

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

_systemTrade

_setStopLossBuy

_setTakeProfitBuy

getTriggerTakeProfit

getTriggerStopLoss

getVaultValues

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

getVaultValuesInUSD

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

_getVaultValues

_getVaultValuesInUSD

getStableValues

getTargetValues

withdraw

Withdraws from funds from the Cake Vault

Parameters

Name
Type
Description

_shares

uint256

withdraw

_withdraw

emergencyUnWindPosition

setProperties

setExecutor

setSwapEngine

getUnitPrice

The unitprice of a share of this fund in baseToken

_getUnitPrice

getUnitPriceInUSD

The unitprice of a share of this fund, in stablecoinUSDAddr

isReTrade

Last updated