xWin DCA-ARB
xWinDCA
targetToken
contract IERC20Upgradeable targetToken_baseTokenStaking
contract IxWinSingleAssetInterface _baseTokenStakingswapEngine
contract IxWinSwap swapEnginexWinPriceMaster
contract IxWinPriceMaster xWinPriceMasterexecutors
mapping(address => bool) executorslastInvestedBlock
uint256 lastInvestedBlockmaxPerSwap
uint256 maxPerSwapswapDuration
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