From 5c0373bc60c90666d6fa9bd3e850b42c04894f52 Mon Sep 17 00:00:00 2001 From: Syed Ghufran Hassan Date: Wed, 24 Jun 2026 15:14:05 +0500 Subject: [PATCH] feat: add dividend distribution and claim functionality with error constants Add dividend distribution and claim functionality for key holders with proportional splits and protocol fees. --- creator-keys/src/quote_view_errors.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/creator-keys/src/quote_view_errors.rs b/creator-keys/src/quote_view_errors.rs index 0e74b56..fedfe4f 100644 --- a/creator-keys/src/quote_view_errors.rs +++ b/creator-keys/src/quote_view_errors.rs @@ -9,3 +9,7 @@ pub const ERR_OVERFLOW: &str = "overflow"; /// Emitted on the sell path when a checked subtraction would underflow. /// Distinct from `ERR_OVERFLOW` so consumers can identify sell-specific underflow. pub const ERR_SELL_UNDERFLOW: &str = "sell_underflow"; + +pub const ERR_ZERO_CLAIMABLE: &str = "zero_claimable"; +pub const ERR_NO_HOLDERS: &str = "no_holders"; +pub const ERR_DIVIDEND_AMOUNT_ZERO: &str = "dividend_amount_zero";