-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: implement deposit v3 events #337
Conversation
9f672c2
to
bd6d657
Compare
* 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]>
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this 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, |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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 "."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DepositFilledDateQueueMessage
can be removed
No description provided.