Contract external method
FundManager
createFund
create fund
anyone can call
parameters | type | description |
---|---|---|
name | string | fund name |
underlyingToken | address | Underlying Token used for fund purchase, valuation, and redemption |
allowPosition | bool | fund support liquidity pools |
allowedTokens | address[] | List of tokens that the fund supports exchange |
managementFee | uint16 | Management fee rate (annual) |
carriedInterest | uint16 | Carry ratio |
gp | address | Fund's GP |
operators | address[] | A list of Operators for the fund |
firstBuyMinAmount | uint256 | The minimum value of the fund's initial subscription |
isPublic | bool | fund public or private |
maxLpCount | uint16 | The maximum number of LPs allowed by the fund (valid only for public funds) |
allowedLps | address[] | List of LPs allowed by the fund (only valid for non-public funds) |
lockTime | uint32 | Time frame for funds to waive redemption fees |
lockFee | uint16 | Fund redemption fee rate |
updateName
Update fund name
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
name | string | fund's new name |
updateOperators
Update the list of operators allowed by the fund
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
operators | address[] | List of new Operators for funds |
updateAssetPriority
Update the automatic sale priority of assets in the fund
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
tokens | address[] | List of tokens that need to be updated |
values0 | uint256[] | A list of priority values corresponding to the above |
positions | uint256[] | A list of positions that need to be updated |
values1 | uint256[] | A list of priority values corresponding to the above |
executeOrder
Funds execute external calls (currently only supports Uniswap V3’s exchange and liquidity pools)
Fund GP, Operator, and official limit order addresses can be called
parameters | type | description |
---|---|---|
fund | address | fund address |
target | address | The contract address of the external call |
data | bytes | calldata for external calls |
value | uint256 | ETH transfer value for external calls |
maker | address | Limit order originator (for limit orders only) |
FundProxy
updateFirstBuyMinAmount
Update the minimum value of the fund's initial subscription
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
value | uint256 | new value |
updateMaxLpCount
Update the maximum number of LPs allowed by the fund (valid only for public funds)
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
value | uint16 | new value |
updateAllowLps
Update the list of LPs allowed by the fund (only valid for non-public funds)
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
lps | address[] | new list |
collect
charge fund management fees
Only fund GP can call
parameters | type | description |
---|---|---|
fund | address | fund address |
buy
fund purchase
Public funds: the maximum number of LPs allowed is not exceeded
Non-public funds: the caller is in the list of LPs allowed to buy
parameters | type | description |
---|---|---|
fund | address | fund address |
amount | uint256 | buy amount |
updateStopLoss
update stopLoss
Only fund LPs can call
parameters | type | description |
---|---|---|
fund | address | fund address |
value | uint24 | new stoploss |
sell
Fund redemption
Only fund LPs can call
parameters | type | description |
---|---|---|
fund | address | fund address |
lp | address | LP address that needs to be redeemed |
ratio | uint256 | Ratio to Redeem |
minPriority | uint256 | Assets with a priority above this value will be sold in full; assets equal to this value will be sold in part |
lastRatio | uint256 | sold ratio |
paths | bytes[] | Conversion path for converting Token to UnderlyingToken |
fee | uint24 | The fee rate corresponding to the path of converting UnderlyingToken to WETH (only for gas fee reimbursement) |