xWin SCA

xWinERC20Alpha

targetToken

contract IERC20Upgradeable targetToken

_baseTokenStaking

contract IERC20Upgradeable _baseTokenStaking

swapEngine

contract IxWinSwap swapEngine

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

executors

mapping(address => bool) executors

lastInvestedBlock

uint256 lastInvestedBlock

reinvestDuration

uint256 reinvestDuration

totalDeposit

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