diff --git a/src/compute_engines/yield_curve/yield_curve.cairo b/src/compute_engines/yield_curve/yield_curve.cairo index fcf8b444..e448e3b9 100644 --- a/src/compute_engines/yield_curve/yield_curve.cairo +++ b/src/compute_engines/yield_curve/yield_curve.cairo @@ -569,7 +569,7 @@ mod YieldCurve { continue; } else { let shifted_on_value = change_decimals( - self, output.price, output.decimals, output_decimals + output.price, output.decimals, output_decimals ); yield_points .append( @@ -848,9 +848,7 @@ mod YieldCurve { } - fn change_decimals( - self: @ContractState, value: u128, old_decimals: u32, new_decimals: u32 - ) -> u128 { + fn change_decimals(value: u128, old_decimals: u32, new_decimals: u32) -> u128 { if (old_decimals <= new_decimals) { // Multiply on_entry by 10 ^ (new_decimals - old_decimals) // which is guaranteed to be an integer > 0 by the if statement diff --git a/src/randomness/randomness.cairo b/src/randomness/randomness.cairo index 5162785b..d537473a 100644 --- a/src/randomness/randomness.cairo +++ b/src/randomness/randomness.cairo @@ -45,7 +45,6 @@ trait IRandomness { callback_address: ContractAddress, callback_gas_limit: u64, random_words: Span, - block_hash: felt252, proof: Span, ); fn get_pending_requests( @@ -226,7 +225,6 @@ mod Randomness { callback_address: ContractAddress, callback_gas_limit: u64, random_words: Span, - block_hash: felt252, proof: Span, ) { assert_only_admin(); diff --git a/src/tests/test_randomness.cairo b/src/tests/test_randomness.cairo index f275a8ac..9ff7cdbe 100644 --- a/src/tests/test_randomness.cairo +++ b/src/tests/test_randomness.cairo @@ -115,7 +115,6 @@ fn test_randomness() { callback_address, callback_gas_limit, random_words.span(), - block_hash, proof.span() ); let res = example_randomness.get_last_random();