Skip to content

Commit

Permalink
Merge pull request #337 from ElrondNetwork/dev/change-metabonding-unb…
Browse files Browse the repository at this point in the history
…ond-period

Change metabonding unbond period
  • Loading branch information
claudiulataretu authored Mar 15, 2022
2 parents f9238b8 + 5aab540 commit 90b0efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dex/farm-staking-contracts/metabonding-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mod locked_asset_token;
use locked_asset_token::UserEntry;

pub type SnapshotEntry<M> = MultiValue2<ManagedAddress<M>, BigUint<M>>;
pub const UNBOND_EPOCHS: u64 = 10;
pub const UNBOND_EPOCHS: u64 = 3;

#[elrond_wasm::contract]
pub trait MetabondingStaking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn test_unstake() {
token_nonce: 1,
stake_amount: managed_biguint!(0),
unstake_amount: managed_biguint!(101_000_000),
unbond_epoch: 10,
unbond_epoch: 3,
};
let actual_entry = sc.entry_for_user(&managed_address!(&user_addr)).get();
assert_eq!(actual_entry, expected_entry);
Expand Down Expand Up @@ -164,7 +164,7 @@ fn test_partial_unstake() {
token_nonce: 1,
stake_amount: managed_biguint!(40_000_000),
unstake_amount: managed_biguint!(51_000_000),
unbond_epoch: 10,
unbond_epoch: 3,
};
let actual_entry = sc.entry_for_user(&managed_address!(&user_addr)).get();
assert_eq!(actual_entry, expected_entry);
Expand All @@ -187,7 +187,7 @@ fn test_partial_unstake() {
token_nonce: 1,
stake_amount: managed_biguint!(10_000_000),
unstake_amount: managed_biguint!(81_000_000),
unbond_epoch: 15,
unbond_epoch: 8,
};
let actual_entry = sc.entry_for_user(&managed_address!(&user_addr)).get();
assert_eq!(actual_entry, expected_entry);
Expand All @@ -204,7 +204,7 @@ fn test_partial_unstake() {
token_nonce: 2,
stake_amount: managed_biguint!(20_000_000),
unstake_amount: managed_biguint!(81_000_000),
unbond_epoch: 15,
unbond_epoch: 8,
};
let actual_entry = sc.entry_for_user(&managed_address!(&user_addr)).get();
assert_eq!(actual_entry, expected_entry);
Expand Down Expand Up @@ -278,7 +278,7 @@ fn test_unbond() {
token_nonce: 1,
stake_amount: managed_biguint!(0),
unstake_amount: managed_biguint!(101_000_000),
unbond_epoch: 10,
unbond_epoch: 3,
};
let actual_entry = sc.entry_for_user(&managed_address!(&user_addr)).get();
assert_eq!(actual_entry, expected_entry);
Expand Down

0 comments on commit 90b0efa

Please sign in to comment.