In-Depth
Last updated
Last updated
Any user has the liberty to establish a Pool, tailoring parameters as they see fit for any market. Pool creators have the autonomy to set and potentially profit from fees. However, the Reference Pool we created does not have a fee set.
Upon investment in the Pool, users are granted Pool Tokens that are compliant with the ERC-20 standard, serving as a testament to their investment. Post the inception of the Pool, the creation or annihilation of Pool tokens is strictly contingent upon deposits or withdrawals.
A Pool's worth is derived from the aggregate of the liquidity it furnishes and the pending settlement tokens awaiting liquidity allocation.
The Pool Token's price is ascertained by the equation:
From Depositor: When depositing settlement tokens into the Pool, depositors are compensated with Pool tokens calculated as:
To Pool: Upon deposit, the settlement token is promptly channeled to the appropriate bin, based on the predetermined Bin Allocation Ratio.
To Withdrawer: Initiating a withdrawal necessitates the return of the Pool tokens to the Pool. The amount disbursed to the withdrawer is:
From Pool: Upon receiving a withdrawal request, a proportionate amount, calculated as:
is retrieved from each bin and the Pool's settlement token reserve to be remitted to the withdrawer. Concurrently, the returned Pool tokens are obliterated. In scenarios where a bin's liquidity is insufficient, the deficit is offset from the settlement token reserve. If this reserve falls short, the Pool tokens equivalent to the uncovered value are reverted to the withdrawer.
The keeper's cost, which is used for rebalance costs of the Pool, is used from the settlement token holdings in the Pool.