Technical Principles
Gas Fee Reimbursement

Gas reimbursement

DeFund supports GP to reimburse gas expenses through the fund and gas expenses by itself. The default is to reimburse gas expenses through the fund.

Gas expense reimbursement only reimburses the operating expenses of the fund operation, such as Swap, current pool, and hanging orders. LP purchase, redemption, GP adjustment of fund parameters, withdrawal management fees and other non-fund operations are not reimbursed.

The specific formula for gas fee reimbursement is:

Gas=(Gas  Used(b)+Offset)GasPrice(oracle)(Gas)\tag{Gas} Gas = (Gas\;Used(b) + Offset) * Gas Price(oracle)

Gas Used(b): Indicates the gas consumption before the entire operation to gas reimbursement transfer

Offset: Used to correct estimates of gas consumption under different operations. The fund redemption operation is 100000, the asset transaction operation is 21000, and the asset conversion operation is 0.