Portfolio Manager

Portfolio Manager

  • Create portfolio.

    1. The Portfolio Manager calls the api endpoint to create a new portfolio, with the following parameters: fee setting, PM address, the token which will be used as credential for the portfolio admin, the tokens that will make up the portfolio, initial number of MTK minted and token prices.

    2. The contract backend builds the "Create Portfolio" transaction with parameters: fee setting, PM address, the token which will be used as credential for the portfolio admin, the tokens that will make up the portfolio, initial number of MTK minted and token prices. This transaction creates a portfolio with the initial tokens deposit, the minimum LVC necessary to hold these different assets, and the NFT that identifies this portfolio. The initial MTK mint is paid to the PM.

    3. The contract backend returns the unsigned transaction cbor to be signed by the Portfolio Manager.

  • Collect Fees

    1. The Portfolio Manager calls the api endpoint to collect fees from portfolio, with the portfolio NFT policyId as parameter.

    2. The contract backend builds the "Collect fees" transaction with the portfolio NFT policyId as parameter. This transaction creates an order that, when processed, will pay the accumulated fees to the PM.

    3. The contract backend returns the unsigned transaction cbor to be signed by the Portfolio Manager.

  • Update the weights of the tokens in a portfolio.

    1. The Portfolio Manager calls the api endpoint to update weights of the portfolio, with parameters: portfolio NFT policyId, and new token weights distribution.

    2. The contract backend builds the "Update weights" transaction, with the parameters mentioned above. This transaction creates an order that, when processed, will update the weights information held in the portfolio.

    3. The contract backend returns the unsigned transaction cbor to be signed by the Portfolio Manager.

Last updated