Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Sep 19, 2023
1 parent e3e6226 commit ef5b74b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/market/internal.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ fn settle_extra_reserve_balance(ref self: ContractState, token: ContractAddress)
}.balanceOf(this_address).try_into().expect(errors::BALANCE_OVERFLOW);

// The full amount if all debts are repaid
let impilcit_total_balance = safe_math::add(reserve_balance, scaled_up_total_debt);
let implicit_total_balance = safe_math::add(reserve_balance, scaled_up_total_debt);

// What all users are _entitled_ to right now (again, accumulators are up to date)
let raw_z_supply = IZTokenDispatcher {
Expand All @@ -970,10 +970,10 @@ fn settle_extra_reserve_balance(ref self: ContractState, token: ContractAddress)
let owned_balance = safe_decimal_math::mul(raw_z_supply, reserve.lending_accumulator);

let no_need_to_adjust = Into::<_,
u256>::into(impilcit_total_balance) <= Into::<_, u256>::into(owned_balance);
u256>::into(implicit_total_balance) <= Into::<_, u256>::into(owned_balance);
if !no_need_to_adjust {
// `impilcit_total_balance > owned_balance` holds inside this branch
let excessive_balance = safe_math::sub(impilcit_total_balance, owned_balance);
// `implicit_total_balance > owned_balance` holds inside this branch
let excessive_balance = safe_math::sub(implicit_total_balance, owned_balance);

let treasury_addr = self.treasury.read();
let effective_reserve_factor = if treasury_addr.is_zero() {
Expand Down
2 changes: 1 addition & 1 deletion src/market/view.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn get_pending_treasury_amount(self: @ContractState, token: ContractAddress) ->

let block_timestamp: felt252 = get_block_timestamp().into();
if reserve.last_update_timestamp == block_timestamp {
// Tresury amount already settled on the same block
// Treasury amount already settled on the same block
0
} else {
// Apply simple interest
Expand Down

0 comments on commit ef5b74b

Please sign in to comment.