Clear Developer Guide
  • Clear Developer Guide
  • Deploy Contract
    • Quick start
    • Configure Contract
    • Contract Upgrade
    • Contract Address
  • Configure contract parameters
    • Configure Contract Parameters
  • Interact with the contract
    • OPTION
      • Market Maker
      • User
    • NOTE
      • Fund Manager
      • LP User
  • Contract reference
    • Oracle
    • Index Contract
    • Option Contract
    • Market Maker Contract
    • Note Contract
  • APIs
    • Configure
    • Price
    • User
    • Market Maker
    • Index
    • Option parameter configuration
    • Faucet
Powered by GitBook
On this page
  • LP User
  • 1.Subscribe Fund
  • 2.Redeem Fund
  • 3.User profit and loss
  1. Interact with the contract
  2. NOTE

LP User

LP User

1.Subscribe Fund

The user calls subscription to subscribe share, _amount is user’s subscription amount, the actual deducted invest amount=amount*(1+rate[0])

When subscribing to the fund, the user injects tokens (USDT) into the contract address of the fund manager, and at the same time needs to pay a 2% of total funds as management fee and 20% of the fund's income as to the fund manager.

2.Redeem Fund

Redemption redemption at maturity. According to the share invested by the user, calculate the income that the user should receive, including the principal and the income. earlyRedemption redemption in advance. It can only be redeemed before the fund closed period. The maximum redemption amount is the invested amount, and the management fee is not refundable.

3.User profit and loss

The user’s profit and loss calculation rules are as follows: note income = fixed income + option income If the note return is negative User income = (total principal-abs (note income))/total principal user share If note earnings are positive User income = (total principal + (1-20%) note income) / total principal * user share

PreviousFund ManagerNextOracle

Last updated 3 years ago