fix(router): add max_amount validation in payment flows (#4645)

This commit is contained in:
Sai Harsha Vardhan
2024-05-15 19:43:43 +05:30
committed by GitHub
parent 1a27ba5764
commit df865d76be
5 changed files with 30 additions and 0 deletions

View File

@ -119,3 +119,6 @@ pub const DEFAULT_POLL_DELAY_IN_SECS: i8 = 2;
pub const DEFAULT_POLL_FREQUENCY: i8 = 5;
pub const CONNECTOR_CREDS_TOKEN_TTL: i64 = 900;
//max_amount allowed is 999999999 in minor units
pub const MAX_ALLOWED_AMOUNT: i64 = 999999999;