Skip to content

Commit 824777f

Browse files
committed
fixed variable name
1 parent 04ea51c commit 824777f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

primitives/src/targeting/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,8 @@ fn eval(input: &Input, output: &mut Output, rule: &Rule) -> Result<Option<Value>
880880
let new_rule = Box::new(Rule::Value(Value::Bool(first_eval)));
881881
Function::Set(String::from("show"), new_rule).eval(input, output)?
882882
}
883-
Function::GetPriceInUsd(second_rule) => {
884-
let amount = second_rule.eval(input, output)?.ok_or(Error::TypeError)?.try_bignum()?;
883+
Function::GetPriceInUsd(first_rule) => {
884+
let amount = first_rule.eval(input, output)?.ok_or(Error::TypeError)?.try_bignum()?;
885885
let deposit_asset = Function::Get("deposit_asset".to_string()).eval(input, output)?.ok_or(Error::TypeError)?.try_string()?;
886886

887887
let divisor = get_deposit_asset_divisor(&deposit_asset)?;

0 commit comments

Comments
 (0)