Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/api/src/api/services/quote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export class QuoteService extends BaseRampService {
throw new APIError({ message: QuoteError.FailedToCalculateQuote, status: httpStatus.INTERNAL_SERVER_ERROR });
}

// Temporary safeguard: Reject on-ramp quotes with output amount > 5000 units
if (ctx.isOnRamp && new Big(ctx.builtResponse.outputAmount).gt(8000)) {
// Temporary safeguard: Reject on-ramp quotes with output amount > 13000 units
if (ctx.isOnRamp && new Big(ctx.builtResponse.outputAmount).gt(13000)) {
// Try to delete created quote as it shouldn't be used
const quoteId = ctx.builtResponse.id;
QuoteTicket.findByPk(quoteId).then(quoteTicket => {
Expand Down