Skip to content

Commit

Permalink
refactor: remove unused error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
linguists committed Aug 9, 2023
1 parent e276db9 commit ac3a444
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions contracts/linear/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ pub const ERR_NON_POSITIVE_TOTAL_STAKED_BALANCE: &str = "The total staked balanc
pub const ERR_NON_POSITIVE_TOTAL_STAKE_SHARES: &str = "The total number of stake shares can't be 0";
pub const ERR_CONTRACT_NO_STAKED_BALANCE: &str = "Invariant violation. The calculated number of \"stake\" shares for unstaking should be positive";

// sync balance
pub const ERR_SYNC_BALANCE_BAD_TOTAL: &str =
"Diff between new total balance and old balance > 1 NEAR";
pub const ERR_SYNC_BALANCE_BAD_STAKED: &str =
"Diff between new staked balance and old balance too large";
pub const ERR_SYNC_BALANCE_BAD_UNSTAKED: &str =
"Diff between new unstaked balance and old balance too large";

// drain operations
pub const ERR_NON_ZERO_WEIGHT: &str = "Validator weight must be zero for drain operation";
pub const ERR_NON_ZERO_BASE_STAKE_AMOUNT: &str =
Expand Down

0 comments on commit ac3a444

Please sign in to comment.