Skip to content

Commit 7f24cd5

Browse files
Merge pull request #7 from talentprotocol/add-first-time-bought
Add first time bought setup on rewards claim event
2 parents f87fc19 + a5f5737 commit 7f24cd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ export function handleRewardClaim(event: RewardClaim): void {
181181
supporterTalentRelationship.supporter = supporter.id
182182
supporterTalentRelationship.talent = talentToken.id
183183
supporterTalentRelationship.amount = ZERO_BD
184+
supporterTalentRelationship.firstTimeBoughtAt = event.block.timestamp
184185
talentToken.supporterCounter = talentToken.supporterCounter.plus(ONE_BI)
185186
}
186187
supporterTalentRelationship.talAmount = supporterTalentRelationship.talAmount.plus(BigDecimal.fromString(event.params.stakerReward.toString()))

0 commit comments

Comments
 (0)