Skip to content

Commit

Permalink
Fix RelayPool validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 committed Mar 4, 2024
1 parent 7785e49 commit 57742fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zp-relayer/configs/commitmentWatcherConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const zSchema = z.object({
COMMITMENT_WATCHER_TX_VK_PATH: z.string().default('../params/transfer_verification_key.json'),
COMMITMENT_WATCHER_FETCH_INTERVAL: z.coerce.number().default(10000),
COMMITMENT_WATCHER_TX_REDUNDANCY: zBooleanString().default('false'),
COMMITMENT_WATCHER_FEE: z.coerce.number().default(50_000_000),
COMMITMENT_WATCHER_FEE: z.coerce.number().default(100_000_000),
})

const config = zSchema.parse(process.env)
Expand Down
2 changes: 1 addition & 1 deletion zp-relayer/pool/RelayPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class RelayPool extends BasePool {
await checkAssertion(() => checkProof(proof, (p, i) => this.verifyProof(p, i)))

const tokenAmount = delta.tokenAmount
const tokenAmountWithFee = tokenAmount.add(transactFee)
const tokenAmountWithFee = tokenAmount.add(transactFee).add(treeUpdateFee)
const energyAmount = delta.energyAmount

if (txType === TxType.WITHDRAWAL) {
Expand Down

0 comments on commit 57742fe

Please sign in to comment.