Fee calculation guide

DeTrustPay on-chain fee breakdowns

All fees shown here are derived directly from the on-chain formulas used by the Solana program. Use this page to understand how confirmation, proposal, and cancellation fees change over time and by scenario.

New user? Start with Learn Basics first. This page is the mechanism-level fee reference.

Basis points: 1 bps = 0.01%Fees are paid to the protocol fee vaultFAQ: fees & costs
Confirmation base fee

50 bps (0.50%)

+ 100 bps each week after 4 free weeks

Proposal bps

+20 bps / +20 bps

Both sides increase per proposal (cap 10000 bps)

Payee cancellation fee

500 bps (5.00%)

+ 100 bps per week since acceptance

Fee cap rule

min(fee_share, available_deposit)

Fees cannot exceed available balances/deposits

Interactive calculator

Try your own fee inputs

Switch between confirmation and cancellation, apply a preset, then edit values to inspect exact deterministic outputs.

Inputs

Choose a preset as a baseline, then adjust values for your case.

Deposit rule: each deposit must be between 0.25x and 4x of original amount.

Live outputs
Base fee bps50 bps (0.50%)
Total protocol fee5.0000 USDC
Fee from payer / payee2.5000 USDC / 2.5000 USDC
Net to payer247.5000 USDC
Net to payee1,247.5000 USDC

Reference only. On-chain execution uses current block time and integer transfer math.

Confirmation scenario
Normal path

Payer confirms during free period

No proposal fees, settlement amount equals the original payment amount.

Transaction Settings
Original payment1,000.0 USDC
Settlement amount1,000.0 USDC
Payer deposit250.0 USDC
Payee deposit250.0 USDC
Elapsed weeks2
Outputs
Base fee bps50 bps (0.50%)
Total protocol fee5.0 USDC
Fee from payer / payee2.5 USDC / 2.5 USDC
Net to payer247.5 USDC
Net to payee1,247.5 USDC
Confirmation scenario
Elevated fees

Payer confirms after 6 weeks + proposals

Extra weeks add bps; both parties accumulated proposal bps.

Transaction Settings
Original payment1,200.0 USDC
Settlement amount1,200.0 USDC
Payer deposit300.0 USDC
Payee deposit300.0 USDC
Elapsed weeks6
Outputs
Base fee bps250 bps (2.50%)
Total protocol fee34.8 USDC
Fee from payer / payee17.4 USDC / 17.4 USDC
Net to payer282.6 USDC
Net to payee1,482.6 USDC
Confirmation scenario
Counter proposal

Accept proposal at a lower amount

Fees are computed on the original amount; leftover returns to the payer.

Transaction Settings
Original payment1,500.0 USDC
Settlement amount1,200.0 USDC
Payer deposit375.0 USDC
Payee deposit375.0 USDC
Elapsed weeks5
Outputs
Base fee bps150 bps (1.50%)
Total protocol fee25.5 USDC
Fee from payer / payee12.8 USDC / 12.7 USDC
Net to payer662.2 USDC
Net to payee1,562.3 USDC
Leftover to payer300.0 USDC
Cancellation scenario
Short delay

Payee cancels after 1 week (payer setup)

Fee charged only from the payee deposit. Payer refund returns to setup vault.

Transaction Settings
Original payment800.0 USDC
Elapsed weeks1
Payer deposit200.0 USDC
Payee deposit200.0 USDC
Outputs
Fee bps600 bps (6.00%)
Fee charged from payee deposit48.0 USDC
Payer refund1,000.0 USDC
Payee refund152.0 USDC
Payer destination: Setup token vault (payer capacity restored)
Payee destination: Payee token account
Cancellation scenario
High fee pressure

Payee cancels after 8 weeks (payee setup)

Fee grows by 1% per week; payee refund routes to setup vault in payee setups.

Transaction Settings
Original payment800.0 USDC
Elapsed weeks8
Payer deposit200.0 USDC
Payee deposit200.0 USDC
Outputs
Fee bps1300 bps (13.00%)
Fee charged from payee deposit104.0 USDC
Payer refund1,000.0 USDC
Payee refund96.0 USDC
Payer destination: Payer token account
Payee destination: Setup token vault (payee capacity restored)
Execution notes

What can change on-chain

  • Elapsed weeks are calculated from the on-chain acceptance timestamp at execution time.
  • Fee shares are capped by available deposits and balances.
  • On-chain transfers use integer math and are rounded down.
  • Solana network fees are paid separately by the signing wallet.
Next actions

Apply these formulas in real workflows

Use this page as a deterministic reference before signing transactions.