xWin Strategy
xWinStrategy
stablecoinUSDAddr
stablecoinUSDAddr is used for view functions with the 'inUSD' suffix.
baseToken
baseToken for the fund/strategy, token for deposit, and token recieved on withdraw
emitEvent
__xWinStrategy_init
_Deposit
_Withdraw
getVaultValues
Gets the total value of the tokens within the fund, value shown in baseToken
_getVaultValues
getUnitPrice
The unitprice of a share of this fund in baseToken
_getUnitPrice
getVaultValuesInUSD
Gets the total value of the tokens within the fund, value shown in stablecoinUSDAddr
getUnitPriceInUSD
The unitprice of a share of this fund, in stablecoinUSDAddr
deposit
Deposits baseToken into the fund, and receives shares based on the fund's unitPrice
Parameters
amount
uint256
Amount of baseToken to deposit
Return Values
[0]
uint256
shares Amount of shares minted to depositor
withdraw
Withdraws from the fund by burning shares, liquidating assets into baseToken and transfering to user
Parameters
amount
uint256
Amount of shares to withdraw
Return Values
[0]
uint256
amount Amount of baseTokens transferred to depositor
deposit
Deposits baseToken into the fund, and receives shares based on the fund's unitPrice
Parameters
amount
uint256
Amount of baseToken to deposit
slippage
uint32
Slippage to use for any swaps during the process
Return Values
[0]
uint256
shares Amount of shares minted to depositor
withdraw
Withdraws from the fund by burning shares, liquidating assets into baseToken and transfering to user
Parameters
amount
uint256
Amount of shares to withdraw
slippage
uint32
Slippage to use for any swaps during the process
Return Values
[0]
uint256
amount Amount of baseTokens transferred to depositor
setEmitEvent
updateUSDAddr
setPause
setUnPause
Last updated