xWin Single Asset Alpaca

xWinSingleAssetAlpaca

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

_Alpaca

contract IAlpaca _Alpaca

smallRatio

uint256 smallRatio

executors

mapping(address => bool) executors

onlyExecutor

modifier onlyExecutor()

initialize

function initialize(string name, string symbol, address _baseToken, address _xWinPriceMaster, address alpaca_, address _USDTokenAddr, uint256 _managerFee, uint256 _performanceFee, uint256 _collectionPeriod, address _managerAddr) external

getUserBalance

function getUserBalance(address _user) public view returns (uint256)

getUnitPrice

The unitprice of a share of this fund in baseToken

_getUnitPrice

_getUnitPrice

getUnitPriceInUSD

The unitprice of a share of this fund, in stablecoinUSDAddr

deposit

deposit

_deposit

withdraw

withdraw

_withdraw

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

canSystemDeposit

systemDeposit

emergencyUnWindPosition

_getAlpacaPrice

_deposit

_removeAlpaca

setExecutor

updateSmallRatio

update small ratio

setPriceMaster

Last updated