Skip to content

Commit

Permalink
Update stakedLockingCrowdSaleMapping.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
schmackofant committed Oct 12, 2023
1 parent a7c9766 commit 74ecf68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subgraph/src/stakedLockingCrowdSaleMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ export function handleStarted(event: StartedEvent): void {

crowdSale.permissioner = event.params.sale.permissioner

crowdSale.type = 'STAKED_LOCKING_CROWDSALE'

crowdSale.auctionLockingDuration = event.params.lockingDuration
crowdSale.stakingToken = makeERC20Token(
IERC20Metadata.bind(event.params.staking.stakedToken)
Expand All @@ -122,6 +120,8 @@ export function handleStarted(event: StartedEvent): void {
crowdSale.wadFixedStakedPerBidPrice =
event.params.staking.wadFixedStakedPerBidPrice

crowdSale.type = 'STAKED_LOCKING_CROWDSALE'

crowdSale.save()
log.info('[handleStarted] crowdsale {}', [crowdSale.id])
}
Expand Down

0 comments on commit 74ecf68

Please sign in to comment.