Flow Details

1. Swap Flow (Before/After Swap Hooks):

  • Before Swap: User’s reputation is checked, and fees are adjusted based on their reputation.

  • After Swap: Reputation is updated based on the swap volume, liquidity contribution, and other metrics.

2. Liquidity Flow (Add/Remove Liquidity Hooks):

  • Before Liquidity Event: System checks the user’s reputation and adjusts behavior accordingly.

  • After Liquidity Event: User reputation is updated based on liquidity provision or withdrawal.

3. Collateral Management:

  • Inactive Pools: If a pool remains inactive for too long, its collateral is slashed, ensuring only active participants remain.

Last updated