Skip to content

TON-622: Onramp UI#352

Draft
heyllog wants to merge 22 commits intofeat/TON-729-staking-uifrom
feat/TON-622-onramp-design
Draft

TON-622: Onramp UI#352
heyllog wants to merge 22 commits intofeat/TON-729-staking-uifrom
feat/TON-622-onramp-design

Conversation

@heyllog
Copy link
Copy Markdown
Contributor

@heyllog heyllog commented Apr 8, 2026

No description provided.

@heyllog heyllog self-assigned this Apr 8, 2026
@heyllog heyllog requested a review from a team as a code owner April 8, 2026 20:20
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kit-demo-wallet Ready Ready Preview, Comment Apr 20, 2026 9:13am

Request Review

@heyllog heyllog changed the base branch from main to feat/TON-376-swap-design April 8, 2026 20:20
@heyllog heyllog marked this pull request as draft April 13, 2026 14:08
@heyllog heyllog changed the base branch from feat/TON-376-swap-design to feat/TON-729-staking-ui April 17, 2026 14:32
/**
* Maximum fiat amount allowed
*/
maxBaseAmount: number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog For example, if it's 1.3 USD, this field will contain 130 (cents) or 1.3? If 1.3 then shouldn't we have some raw values in cents? This related to all fields - both crypto and fiat.

/**
* Provider-specific metadata for the quote
*/
metadata?: unknown;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Shouldn't we use generic here?

/**
* Amount to onramp (either fiat or crypto, depending on isFiatAmount)
*/
amount: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Same question about cents here

* E.g. credit_card, bank_transfer. Limits the payment methods available.
* Often not strictly required by convert endpoint but can be passed.
*/
paymentMethod?: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Can we make more specific values here if we know them?

/**
* Custom options for Mercuryo requests
*/
export interface MercuryoQuoteOptions {
Copy link
Copy Markdown
Contributor

@ProudOfZiggy ProudOfZiggy Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Shouldn't we have MercuryoQuoteOptions and MercuryoOnrampOptions in models? We need them on mobile platforms also

/**
* E.g. credit_card, google_pay, apple_pay. Limits the payment methods available.
*/
paymentMethod?: string;
Copy link
Copy Markdown
Contributor

@ProudOfZiggy ProudOfZiggy Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Same question here - more specific values instead of string if mossible

/**
* Custom options for Moonpay requests
*/
export interface MoonpayQuoteOptions {
Copy link
Copy Markdown
Contributor

@ProudOfZiggy ProudOfZiggy Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Same question here - move to models

/**
* Custom options for TonPay requests
*/
export interface TonPayQuoteOptions {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog Same questions here


export class OnrampError extends DefiManagerError {
static readonly PROVIDER_ERROR = 'PROVIDER_ERROR';
static readonly InvalidParams = 'INVALID_ONRAMP_PARAMS';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heyllog INVALID_PARAMS? =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants