Skip to content

Commit

Permalink
Merge 6ab1ecf into e867e87
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite authored Dec 18, 2024
2 parents e867e87 + 6ab1ecf commit 80510e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,8 @@ contract Lending {
let collateral = storage.collateral.at(owner).read();
let static_debt = storage.static_debt.at(owner).read();
let asset: Asset = storage.assets.at(0).read();
let debt = debt_value(
U128::from_integer(static_debt),
U128::from_integer(asset.interest_accumulator),
)
.to_integer();
let debt =
debt_value(U128::from_integer(static_debt), asset.interest_accumulator).to_integer();
Position { collateral, static_debt, debt }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract Spam {
let amount = U128::from_integer(1);

for _ in 0..MAX_NOTE_HASHES_PER_CALL {
storage.balances.at(caller).add(caller, U128::from_integer(amount)).emit(
storage.balances.at(caller).add(caller, amount).emit(
encode_and_encrypt_note_unconstrained(&mut context, caller, caller),
);
}
Expand Down

0 comments on commit 80510e6

Please sign in to comment.