xWin Single Asset Aave
xWinSingleAssetAave
swapEngine
contract IxWinSwap swapEnginexWinPriceMaster
contract IxWinPriceMaster xWinPriceMasteraavePool
contract IPool aavePoolaavePoolDataProvider
contract IPoolDataProvider aavePoolDataProvidertargetToken
contract IERC20Upgradeable targetTokensmallRatio
uint256 smallRatioexecutors
mapping(address => bool) executorsonlyExecutor
modifier onlyExecutor()initialize
function initialize(string name, string symbol, address _baseToken, address _swapEngine, address _xWinPriceMaster, address _USDTokenAddr, uint256 _managerFee, uint256 _performanceFee, uint256 _collectionPeriod, address _managerAddr) externalupdateProperties
function updateProperties(address _targetToken, address _pool, address _aavePoolDataProvider) externalgetUserBalance
function getUserBalance(address _user) public view returns (uint256)getSupplyRate
function getSupplyRate() public view returns (uint256)getUnitPrice
function getUnitPrice() public view returns (uint256)The unitprice of a share of this fund in baseToken
_getUnitPrice
function _getUnitPrice() internal view returns (uint256)_getUnitPrice
function _getUnitPrice(uint256 fundvalue) internal view returns (uint256)getUnitPriceInUSD
function getUnitPriceInUSD() public view returns (uint256)The unitprice of a share of this fund, in stablecoinUSDAddr
deposit
function deposit(uint256 _amount) external returns (uint256)deposit
function deposit(uint256 _amount, uint32 _slippage) public returns (uint256)_deposit
function _deposit(uint256 _amount, uint32 _slippage) internal returns (uint256)_getMintQty
function _getMintQty(uint256 _unitPrice) internal view returns (uint256 mintQty)withdraw
function withdraw(uint256 _amount) external returns (uint256)withdraw
function withdraw(uint256 _amount, uint32 _slippage) public returns (uint256)_withdraw
function _withdraw(uint256 _amount, uint32 _slippage) internal returns (uint256)getVaultValues
function getVaultValues() external view returns (uint256 vaultValue)Gets the total value of the tokens within the fund, value shown in baseToken
getVaultValuesInUSD
function getVaultValuesInUSD() external view returns (uint256 vaultValue)Gets the total value of the tokens within the fund, value shown in stablecoinUSDAddr
_getVaultValues
function _getVaultValues() internal view returns (uint256)_getVaultValuesInUSD
function _getVaultValuesInUSD() internal view returns (uint256)canSystemDeposit
function canSystemDeposit() public view returns (bool)systemDeposit
function systemDeposit() externalemergencyUnWindPosition
function emergencyUnWindPosition() external_depositAave
function _depositAave() internal_removeAave
function _removeAave(uint256 _amount) internalsetExecutor
function setExecutor(address _wallet, bool _allow) externalupdateSmallRatio
function updateSmallRatio(uint256 _ratio) externalupdate small ratio
setSwapEngine
function setSwapEngine(address _newSwapEngine) externalsetPriceMaster
function setPriceMaster(address _newPriceMaster) externalLast updated