Fund Registry
Registry for Funds.
Overview
The Fund Registry (FundRegistry.sol) is used to store fund information. It also allows for creating new funds. Like most registries, it makes use of the eternal storage pattern to store information, inheriting the base registry. The Fund Registry uses fund Ids to store their associated data.
Fund
Funds are managed by a fund admin, and have an associated group of instruments that belong to them. Funds are created in the KAIO system by the KAIO Admin.
Fund Creation
Function:
addNewFund(bytes32 _senderRole, bytes32 _fundId)Purpose: Creates a new Fund in the KAIO system.
Parameters:
bytes32 _senderRole: Role of the sender.bytes32 _fundId: Id of the fund to create.
Validation Checks:
Checks the fund Id is not 0.
Ensures the caller has the proper role.
Makes sure the fund does not already exist.
Behavior:
Creates the new fund.
Emits a
NewFundAddedevent, signaling the fund has been added.
Example:
addNewFund(0xAdminRole, 0xFundId);
Last updated
