Skip to content

Commit

Permalink
disables deposits
Browse files Browse the repository at this point in the history
  • Loading branch information
r0wdy1 committed Jan 28, 2025
1 parent c8e1516 commit 60a3553
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zp-relayer/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ async function sendTransactions(req: Request, res: Response) {
depositSignature,
}
})
if (txs.find(tx => tx.depositSignature!=null)) {
res.status(403).send(
"Deposits to the Polygon pool are disabled"
)
}
const jobId = await pool.transact(txs, traceId)
res.json({ jobId })
}
Expand Down

0 comments on commit 60a3553

Please sign in to comment.