⚒️Anti-bricking

Zolidly employs a fee-billing structure that prevents bricking. The anti-bricking mechanism only works if no users claim rewards in that epoch. In such cases, transaction fees are carried over to the next epoch. However, if even one user claims compensation, all users will receive transaction fees in proportion to their stake. Whenever a user trades an asset on Zolidly, the swap fee is initially transferred to the feeAccrual Contract. At the same time, the UI will start displaying the quantity under "Earned," and the user can claim their reward. Upon a user's claim, all fees generated are transferred to the feeDist Contract, and the user receives a portion of the fee based on their stake. Users can claim rewards indefinitely if they are allocated to the feeDist Contract.

For instance, let's assume a user earns $1,000 in trading fees on the USDC/DAI pair during the fifth-day epoch. The sum of all transaction fees from that pool amounts to $30,000, and the transaction fees are in the feeAccrual contract. The moment a user claims a reward, all $30,000 transaction fees are transferred to the feeDist contract, which distributes each user's transaction fees. If no one claims a reward by the end of the seventh day, the fee is allocated to the voters of the next epoch.

Last updated