Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 14, 2024
1 parent fb04acb commit 2bd08aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/actions/write/evolveState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,19 @@ export const evolveState = async (
);
if (totalOutstandingTokens.isGreaterThan(TOTAL_IO_SUPPLY)) {
const difference = totalOutstandingTokens.minus(TOTAL_IO_SUPPLY);
console.log(

Check failure on line 199 in src/actions/write/evolveState.ts

View workflow job for this annotation

GitHub Actions / build / build (lint:check)

Unexpected console statement
`Outstanding balance greater than total supply. Decreasing protocol balance of ${protocolBalance.valueOf()} by`,
difference.valueOf(),
);
state.balances[SmartWeave.contract.id] = protocolBalance
.minus(difference)
.valueOf();
} else {
const difference = TOTAL_IO_SUPPLY.minus(totalOutstandingTokens);
console.log(

Check failure on line 208 in src/actions/write/evolveState.ts

View workflow job for this annotation

GitHub Actions / build / build (lint:check)

Unexpected console statement
`Outstanding balance greater than total supply. Decreasing protocol balance of ${protocolBalance.valueOf()} by`,
difference.valueOf(),
);
state.balances[SmartWeave.contract.id] = protocolBalance
.plus(difference)
.valueOf();
Expand Down

0 comments on commit 2bd08aa

Please sign in to comment.