Back
Challenge 19 - Authority Match Check
EasyCPMMAuthority19 / 20

Challenge 19: Authority Match Check

Many serious Solana bugs are not math bugs. They are authorization bugs.

Task

Implement is_authority.

Requirement

Return true only when the provided authority matches exactly.

Why it matters

A CPMM usually has privileged actions like:

  • pausing the pool
  • changing fee config
  • collecting protocol fees

Those should never run for the wrong signer.

LanguageRust
Loading editor...
Run works without login. Submit requires sign-in so completion can be saved.
Run cases to compare your output against each configured input. Submit saves progress only when every case passes.
    Challenge 19 - Authority Match Check · CPMM Exercise | learn.sol