Skip to content

distribute() calls #1

@stas

Description

@stas

Every midnight on Wednesday to Thursday we have two hours, one before and one after that are reserved for the protocol maintenance operations.

During this time we need to call distribute() on every gauge we have registered:
https://github.com/velodrome-finance/contracts/blob/main/contracts/interfaces/IVoter.sol#L139-L142

This needs to scale for whatever is the number of gauges we need to call.


If helpful, we can use the Sugar calls as an example how the gauge and pool addresses are fetched:
https://github.com/velodrome-finance/sugar/blob/v3/contracts/LpSugar.vy#L283-L331

Ideally we don't have to depend on Sugar for this automation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions