Skip to content

Commit

Permalink
remove entity rewardsclaimed
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Feb 11, 2025
1 parent 43bf463 commit 221d885
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions subgraphs/sts/src/entities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,3 @@ export function getOrCreateSonicStakingSnapshot(timestamp: i32): SonicStakingSna
}
return snapshot
}

export function getOrCreateRewardsClaimed(transactionHash: Bytes): RewardsClaimed {
let rewardsClaimed = RewardsClaimed.load(transactionHash)

if (rewardsClaimed === null) {
rewardsClaimed = new RewardsClaimed(transactionHash)
rewardsClaimed.amountClaimed = BigDecimal.zero()
rewardsClaimed.protocolFee = BigDecimal.zero()
rewardsClaimed.timestamp = 0
rewardsClaimed.save()
}

return rewardsClaimed
}

0 comments on commit 221d885

Please sign in to comment.