Reporting

Description of the DeFunds reporting process

Each fund has its own reporting period. When creating a fund, you can choose from 3 options: 1 week, 1 month, and 1 quarter. Reporting is a key event in DeFunds, and a fund usually undergoes reporting for the following reasons:

The report consists of several steps that are performed sequentially:

The report has a limit of 20 operations. One operation is counted for each deposit or withdrawal. If the number of operations in the report exceeds the limit, the report is executed in multiple transactions. Execution fee is charged from fund assets for every report transaction.

Note: Only trigger server is authorized to call the report

Autoclosing

During report, these expenses are paid from fund assets in USDT:

If the fund's USDT balance and the total deposit size for the last period are insufficient to cover the fund's expenses, the auto-closing process is initiated, in order to get needed amount of USDT. Usually it's 110% of needed amount is closed, to handle high volatility at the moment of closing positions. The order of services during auto-closing is: GMX -> AAVE -> 0x. Positions are closed in order from the biggest to the smallest.

Execution fees are calculated using this formula:

  • gasFee - amount of gas used for an autoclosing transaction

  • gasPrice - gas price

  • value - amount of base currency sent with a transaction (needed for decreasal of GMX positions)

  • priceETH - price of network's base currency in USDT fetched from a Chainlink price feed contract

Execution fees are tracked as debt and are charged from Trade contract in USDT every hour.

Hint: To avoid unwanted auto-closing, you should close positions in advance to fulfill all withdrawal requests during the indent period

Last updated