Holds a portfolio of tokens and allows a fund manager to trade and rebalance tokens
function Rebalance(address[] _toAddr, uint256[] _targets) external
Rebalance the Portfolio Vault and redistribute the funds new tokens and weights
Parameters
Target Weights for tokens
function Rebalance(address[] _toAddr, uint256[] _targets, uint32 _slippage) public
Rebalance the Portfolio Vault and redistribute the funds new tokens and weights
Parameters
Target Weights for tokens
Buy fund shares by depositing baseToken
Swaps will be done before shares are created
Parameters
Amount of baseToken to deposit
Return Values
Amount of shares received
Buy fund shares by depositing baseToken
Swaps will be done before shares are created
Parameters
Amount of baseToken to deposit
Return Values
Amount of shares received
Exchange Portfolio vault shares for baseToken
Performance fee will be charged if a profit is made, if no deposit the entire withdraw amount will be treated as profit
Parameters
Amount of shares to withdraw
Return Values
Amount of baseToken received
Exchange Portfolio vault shares for baseToken
Performance fee will be charged if a profit is made, if no deposit the entire withdraw amount will be treated as profit
Parameters
Amount of shares to withdraw
Return Values
Amount of baseToken received
Deploys New Portfolio Fund Contracts
createFundPrivate
Deploys a new ERC20 Private Portfolio Fund
Parameters
Name of the Portfolio Fund
Symbol of the Portfolio Fund token
Initial allocation token addresses
Initial allocation target weights
Process platform fee on all funds
Process platform fee on input fund address
Parameters
Address of fund to collect fee
processManagerFee
Process manager fee on input fund address
Parameters
Address of fund to collect fee
massProcessManagerFee
Process manager fee on all funds
getLatestFundID
Gets the ID of the lastest fund created
getFundfromIndex
Get Portfolio Fund address from fund ID
Parameters
Return Values