Background
On deposit_verifier_stake, a zero stake is rejected with the generic Error::InvalidRewardAmount, which conflates two different failures. A zero (or otherwise invalid) verifier stake should return its own typed error so callers can distinguish a bad stake from a bad reward.
Files to modify (2)
- contracts/earn-quest/src/escrow.rs
- contracts/earn-quest/src/errors.rs
Acceptance Criteria
Background
On
deposit_verifier_stake, a zero stake is rejected with the genericError::InvalidRewardAmount, which conflates two different failures. A zero (or otherwise invalid) verifier stake should return its own typed error so callers can distinguish a bad stake from a bad reward.Files to modify (2)
Acceptance Criteria