Skip to content

Inconsistency: TwapOracle has no role_members enumeration, unlike DripGovernor::role_members #306

Description

@Jaydbrown

DripGovernor (contracts/governor/src/role.rs) maintains a RoleMembers(Role) index alongside grant/revoke, exposed via DripGovernor::role_members(role). TwapOracle (contracts/oracle/src/lib.rs) uses the identical Role/RoleKey/grant_role_inner/revoke_role_inner pattern (clearly derived from the same design) but never added the membership-index half — its DataKey enum has no RoleMembers-equivalent variant and there's no role_members() function. Off-chain tooling that wants to enumerate every PriceFeeder on the oracle has no on-chain way to do it and must replay every grant/revoke event from genesis, unlike the equivalent governor query.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions