xWin DCA-ARB

xWinDCA

targetToken

contract IERC20Upgradeable targetToken

_baseTokenStaking

contract IxWinSingleAssetInterface _baseTokenStaking

swapEngine

contract IxWinSwap swapEngine

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

executors

mapping(address => bool) executors

lastInvestedBlock

uint256 lastInvestedBlock

maxPerSwap

uint256 maxPerSwap

swapDuration

reinvestDuration

initialize

onlyExecutor

deposit

deposit

_deposit

getAmountToSwap

View function to get the amount of base tokens to swap into target token

canSystemDeposit

systemDeposit

Swaps from base token to target token

Only possible when contract not paused.

getStableCoinTotalBalance

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

getBaseValues

withdraw

withdraw

_withdraw

emergencyUnWindPosition

updateProperties

setExecutor

setSwapEngine

getUnitPrice

Calculates the price per share

_getUnitPrice

getUnitPriceInUSD

The unitprice of a share of this fund, in stablecoinUSDAddr

getNextInvestBlock

Last updated