Skip to content

Protocol Config Storage Contract #28

Description

@OlufunbiIK

Complexity: Medium

Problem: Protocol parameters (max LTV, accepted asset types, fee rate) need a single on-chain source of truth readable by all contracts.

Scope: Build a ProtocolConfig contract that stores and exposes protocol parameters, writable only by governance or admin.

Key methods: set_param(key, value), get_param(key), get_all_params(), set_admin(address)

Acceptance criteria: All contracts read from this config. Only governance contract or admin can update values.

Files to create:
contracts/protocol-config/src/lib.rs
contracts/protocol-config/src/storage.rs
contracts/protocol-config/src/errors.rs
contracts/protocol-config/Cargo.toml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions