Deployer contract implementation

1. Functions

1.1. deploy

  function deploy(
    address controller,
    address manager,
    address token,
    address descriptor,
    address lockPeriod,
    address baseLine,
    bytes managerFee
  ) internal returns (address fund)

Deploys a fund with the given parameters by transiently setting the parameters storage slot and then clearing it after deploying the fund.

Parameters:

Name Type Description
controller address The controller address
manager address The manager address of this fund
token address The local token address
descriptor address bytes string descriptor, the first 32 bytes manager name + next bytes brief description
lockPeriod address Fund lock up period
baseLine address Baseline of fund manager fee ratio
managerFee bytes When the ROI is greater than the baseline, the fund manager’s fee ratio

Return Values:

Name Type Description
fund address Fund address
Copyright © hotpot fund 2021 all right reserved,powered by GitbookUpdated At: 2021-12-28 10:33:50

results matching ""

    No results matching ""