Skip to content

Commit

Permalink
Enable verification for vest_transfer and remove_shareholder
Browse files Browse the repository at this point in the history
  • Loading branch information
axiongsupra committed Dec 4, 2024
1 parent 93c26ef commit dacd39b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ spec supra_framework::vesting_without_staking {

spec vest_transfer {
// TODO(fa_migration)
pragma verify = false;
pragma verify = true;
let amount = min(vesting_record.left_amount, fixed_point32::spec_multiply_u64(vesting_record.init_amount, vesting_fraction));
// Ensure that the amount is substracted from the left_amount
ensures vesting_record.left_amount == old(vesting_record.left_amount) - amount;
Expand All @@ -126,7 +126,7 @@ spec supra_framework::vesting_without_staking {

spec remove_shareholder {
// TODO(fa_migration)
pragma verify = false;
pragma verify = true;
pragma aborts_if_is_partial = true;
include AdminAborts;
let vesting_contract = global<VestingContract>(contract_address);
Expand Down

0 comments on commit dacd39b

Please sign in to comment.