xWin Strategy With Fee

xWinStrategyWithFee

waivedPerformanceFees

mapping(address => bool) waivedPerformanceFees

Priviliged addresses with fees waived for this fund (e.g. manager/platform)

performanceFee

uint256 performanceFee

performance fee in 4 decimals, e.g 100% = 10000

managerFee

uint256 managerFee

manager fee in 4 decimals, e.g 100% = 10000

pendingMFee

uint256 pendingMFee

Pending shares to award to manager

collectionPeriod

uint256 collectionPeriod

Blocks between performance fee collection

collectionBlock

Next available collection block number

prevCollectionBlock

Last performance fee collection block number

watermarkUnitprice

High water mark for performance fee collection

strategyManager

Manager of this strategy

lastManagerFeeCollection

Last management fee collection block number

blocksPerDay

pendingNewPerformanceFee

New performance fee rate, which will be applied on next performance fee collection

lockingAddress

Address of locked staking contract, for performance fee discounts

__xWinStrategyWithFee_init

updateLockedStakingAddress

canCollectPerformanceFee

View function to check if performance fee can be collected

_calcFundFee

Calculates management fee, updating pendingMFee

collectFundFee

Mints management fee shares to manager

collectPerformanceFee

collects performance fee

performanceWithdraw

Function to handle performance fee on withdraw

Parameters

Name
Type
Description

_withdrawUnits

uint256

Amount of shares being withdrawn

_amtOut

uint256

Amount of tokens after swapping back to base currency

Return Values

Name
Type
Description

[0]

uint256

amount Amount left after performance fee deduction

_getMintQty

Calc qty to issue during deposit

_getNewFundUnits

setPerformanceFee

setManagerFee

setPerformanceCollectionPeriod

setBlockPerDay

getFundTotalSupply

GetStrategyData

View function to get all the fund's main data and parameters

setManagerWallet

_convertTo18

_convertFrom18

addWaiveFee

removeWaiveFee

_isContract

Last updated