diff --git a/ocp/worker/currency/launcher/util.go b/ocp/worker/currency/launcher/util.go index 6829d1e..84ec841 100644 --- a/ocp/worker/currency/launcher/util.go +++ b/ocp/worker/currency/launcher/util.go @@ -123,18 +123,9 @@ func (p *runtime) markCurrencyMetadataAbandoned(ctx context.Context, record *cur return p.data.SaveCurrencyMetadata(ctx, record) } -func (p *runtime) putInitialReserveState(ctx context.Context, record *currency.MetadataRecord) error { +func (p *runtime) putInitialReserveState(_ context.Context, _ *currency.MetadataRecord) error { // Note: The live reserve state is initialized by the swap worker on initial purchase - err := p.reserveStore.PutHistoricalReserve(ctx, ¤cy.ReserveRecord{ - Mint: record.Mint, - SupplyFromBonding: 0, - Time: record.CreatedAt, - }) - if err != nil && err != currency.ErrExists { - return errors.Wrap(err, "error putting initial historical reserve state") - } - return nil } @@ -148,15 +139,6 @@ func (p *runtime) putInitialHolderCount(ctx context.Context, record *currency.Me return errors.Wrap(err, "error putting initial live holder count") } - err = p.holderStore.PutHistoricalHolderCount(ctx, ¤cy.HolderCountRecord{ - Mint: record.Mint, - HolderCount: 0, - Time: record.CreatedAt, - }) - if err != nil && err != currency.ErrExists { - return errors.Wrap(err, "error putting initial historical holder count") - } - return nil }