Function: registerPool(address _pool, address _couponToken)

This function is used to register a pool in the distributor.

Inputs

  • _pool

    • Control: Arbitrary.

    • Constraints: Nonzero address.

    • Impact: Address of the pool to be registered.

  • _couponToken

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the coupon token associated with the pool.

Branches and code coverage

Intended branches

  • Update the poolInfos mapping with the pool address and coupon token.

Negative behavior

  • Revert if the caller is not the pool factory.

  • Revert if the pool address is zero.

Zellic © 2025Back to top ↑