Skip to content

Commit b8de7f5

Browse files
committed
fix: fixed error.
1 parent 07cf0b9 commit b8de7f5

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

crates/redeem/src/tests.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ type Event = crate::Event<Test>;
1515
fn collateral(amount: u128) -> Amount<Test> {
1616
Amount::new(amount, DEFAULT_COLLATERAL_CURRENCY)
1717
}
18-
fn griefing(amount: u128) -> Amount<Test> {
19-
Amount::new(amount, DEFAULT_NATIVE_CURRENCY)
20-
}
2118
fn wrapped(amount: u128) -> Amount<Test> {
2219
Amount::new(amount, DEFAULT_WRAPPED_CURRENCY)
2320
}
@@ -889,8 +886,6 @@ mod spec_based_tests {
889886
.mock_safe(move |_vault_id, _amount| MockResult::Return(Ok(())));
890887
ext::vault_registry::is_vault_below_premium_threshold::<Test>
891888
.mock_safe(move |_vault_id| MockResult::Return(Ok(false)));
892-
let redeem_fee = Fee::get_redeem_fee(&wrapped(amount_to_redeem)).unwrap();
893-
let burned_tokens = wrapped(amount_to_redeem) - redeem_fee;
894889

895890
// The returned `replaceCollateral` MUST be released
896891
currency::Amount::unlock_on.mock_safe(move |collateral_amount, vault_id| {

crates/vault-registry/src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl traits::NominationApi<VaultId<AccountId, CurrencyId>, currency::Amount<Test
269269

270270
Ok(())
271271
}
272-
fn ensure_opted_in_to_nomination(vault_id: &VaultId<AccountId, CurrencyId>) -> Result<(), DispatchError> {
272+
fn ensure_opted_in_to_nomination(_vault_id: &VaultId<AccountId, CurrencyId>) -> Result<(), DispatchError> {
273273
Ok(())
274274
}
275275
#[cfg(any(feature = "runtime-benchmarks", test))]

crates/vault-registry/src/tests.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ fn amount(amount: u128) -> Amount<Test> {
6666
Amount::new(amount, DEFAULT_COLLATERAL_CURRENCY)
6767
}
6868

69-
fn griefing(amount: u128) -> Amount<Test> {
70-
Amount::new(amount, DEFAULT_NATIVE_CURRENCY)
71-
}
72-
7369
fn wrapped(amount: u128) -> Amount<Test> {
7470
Amount::new(amount, DEFAULT_WRAPPED_CURRENCY)
7571
}

0 commit comments

Comments
 (0)