xWin SCA
xWinERC20Alpha
targetToken
contract IERC20Upgradeable targetToken_baseTokenStaking
contract IERC20Upgradeable _baseTokenStakingswapEngine
contract IxWinSwap swapEnginexWinPriceMaster
contract IxWinPriceMaster xWinPriceMasterexecutors
mapping(address => bool) executorslastInvestedBlock
uint256 lastInvestedBlockreinvestDuration
uint256 reinvestDurationtotalDeposit
Pause
Unpause
initialize
init
onlyExecutor
deposit
deposit
_deposit
canSystemDeposit
_calcMintQty
systemDeposit
Swaps interest received from baseTokenStaking into target token
Only possible when contract not paused.
getAmountToSwap
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
_getVaultValuesInUSD
getStableValues
getTargetValues
getBaseValues
withdraw
Withdraws from funds from the Cake Vault
Parameters
Name
Type
Description
_shares
uint256
withdraw
_withdraw
adminStakeStable
emergencyUnWindPosition
setPriceMaster
setProperties
setExecutor
setSwapEngine
getUnitPrice
Calculates the price per share
_getUnitPrice
getUnitPriceInUSD
The unitprice of a share of this fund, in stablecoinUSDAddr
getNextInvestBlock
Last updated