Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement deposit v3 events #337

Closed

Conversation

amateima
Copy link
Collaborator

@amateima amateima commented Feb 7, 2024

No description provided.

Copy link

linear bot commented Feb 7, 2024

@amateima amateima force-pushed the amatei/acx-1831-implement-fundsdeposited-v3-events branch from 9f672c2 to bd6d657 Compare February 7, 2024 14:45
@amateima amateima marked this pull request as draft February 14, 2024 17:16
amateima and others added 6 commits February 20, 2024 20:15
* fix: replace save with update (#338)

Co-authored-by: amateima <[email protected]>

* fix: replace save with update (#340)

* fix: replace save with update

* Fix

---------

Co-authored-by: amateima <[email protected]>

* feat: integrate v3 fill events

* Add fill events consumer

* Finish v3 fill events

* Dix

* feat: implement speedup v3 events (#341)

* feat: implement speedup v3 events

* Fix bugs

* Fix import

* Fix

---------

Co-authored-by: amateima <[email protected]>

---------

Co-authored-by: amateima <[email protected]>
@amateima amateima requested a review from dohaki February 21, 2024 09:47
@amateima amateima marked this pull request as ready for review February 21, 2024 09:47
Copy link
Contributor

@dohaki dohaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One question on relayGasFeePct being undefined

@@ -93,7 +96,7 @@ export class FeeBreakdownConsumer {
relayCapitalFeePct: undefined,
relayCapitalFeeAmount: undefined,
relayGasFeeUsd,
relayGasFeePct: relayGasFeePct.toString(),
relayGasFeePct: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, why did we have to remove this?

const relayGasFeePct = new BigNumber(relayGasFeeAmount).dividedBy(deposit.amount);

doesn't work?

Copy link
Contributor

@dohaki dohaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some more nits

import {
DepositFilledDateQueueMessage,
FeeBreakdownQueueMessage,
FillEventsQueueMessage2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed

ScraperQueue,
} from ".";
import { InjectRepository } from "@nestjs/typeorm";
import { Deposit, DepositFillTx2, DepositFillTxV3 } from "../../../deposit/model/deposit.entity";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DepositFillTx2 can be removed

import { OnQueueFailed, Process, Processor } from "@nestjs/bull";
import { Logger } from "@nestjs/common";
import { Job } from "bull";
import { DepositFilledDateQueueMessage, SpeedUpEventsV3QueueMessage, ScraperQueue } from ".";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DepositFilledDateQueueMessage can be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants