Skip to content

Commit

Permalink
agent: update operators after type change from BigNumber to Number
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Jul 11, 2023
1 parent e0d72c9 commit 026513f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/indexer-agent/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ export function reviewArgumentsForWarnings(argv: AgentOptions, logger: Logger) {
collectReceiptsEndpoint,
} = argv

logger.debug('Reviewing Indexer Agent configuration')

const advisedGasIncreaseTimeout = 90000
const advisedGasIncreaseFactor = 1.5
const advisedRebateClaimMaxBatchSize = 200
Expand Down Expand Up @@ -628,7 +630,7 @@ export function reviewArgumentsForWarnings(argv: AgentOptions, logger: Logger) {
{ gasIncreaseFactor: gasIncreaseFactor },
)
}
if (rebateClaimThreshold.lt(voucherRedemptionThreshold)) {
if (rebateClaimThreshold < voucherRedemptionThreshold) {
logger.warn(
'Rebate single minimum claim value is less than voucher minimum redemption value, ' +
'but claims depend on redemptions',
Expand All @@ -639,7 +641,7 @@ export function reviewArgumentsForWarnings(argv: AgentOptions, logger: Logger) {
)
}

if (rebateClaimThreshold.eq(0)) {
if (rebateClaimThreshold === 0) {
logger.warn(
`Minimum query fee rebate value is 0 GRT, which may lead to claiming unprofitable rebates`,
)
Expand All @@ -653,7 +655,7 @@ export function reviewArgumentsForWarnings(argv: AgentOptions, logger: Logger) {
)
}

if (voucherRedemptionThreshold.eq(0)) {
if (voucherRedemptionThreshold == 0) {
logger.warn(
`Minimum voucher redemption value is 0 GRT, which may lead to redeeming unprofitable vouchers`,
)
Expand Down

0 comments on commit 026513f

Please sign in to comment.