Skip to content

Commit

Permalink
Merge branch 'master' into feat/get-opn-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Khrafts committed Jul 29, 2024
2 parents f48d5fe + 9429458 commit 3ffa39c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/fixed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ export let BIG_INT_ONE = BigInt.fromI32(1);
export let BIG_INT_1E3 = BigInt.fromI32(1000);

export let BYTES_EMPTY = Bytes.empty();

export let V2_1_FUEL_FIX_BLOCK = BigInt.fromI32(56450784); // This is a dummy number and would be replaced with the actual blockheight after our contract upgrade
1 change: 1 addition & 0 deletions src/mappings/v2.1/economicsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function handleIntegratorToppedUp(e: IntegratorToppedUp): void {

integrator.totalTopUp = totalTopUp;
integrator.totalTopUpUSD = totalTopUpUSD;
integrator.price = totalTopUpUSD.div(totalTopUp);

integrator.topUpCount = integrator.topUpCount.plus(BIG_INT_ONE);
integratorDay.topUpCount = integratorDay.topUpCount.plus(BIG_INT_ONE);
Expand Down

0 comments on commit 3ffa39c

Please sign in to comment.