Skip to content

Commit

Permalink
Merge pull request #15 from Itheum/develop
Browse files Browse the repository at this point in the history
fix: forfeit logic
  • Loading branch information
damienen authored Apr 4, 2024
2 parents a6bbf5c + fc7803f commit 55cdadc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ pub trait LifeBondingContract:
ERR_PENALTIES_EXCEED_WITHDRAWAL_AMOUNT
);
require!(
&bond_cache.remaining_amount - &penalty_amount
>= compensation_cache.accumulated_amount,
&bond_cache.bond_amount - &penalty_amount >= compensation_cache.accumulated_amount,
ERR_PENALTIES_EXCEED_WITHDRAWAL_AMOUNT
);

Expand Down

0 comments on commit 55cdadc

Please sign in to comment.