Payment Liquidity Pool (PLP)
The Payment Liquidity Pool is Pelago's innovative approach to aggregating payments and reducing transaction costs.
Overview
Traditional payment systems process each transaction individually, incurring high blockchain fees. Pelago's PLP aggregates multiple payments into batched settlements, dramatically reducing costs.
How It Works
1. Payment Acceptance
When a customer pays:
- Payment is validated by smart contract
- Funds enter the liquidity pool
- Merchant receives instant credit (pending settlement)
- Transaction is queued for batch processing
2. Batch Aggregation
The pool aggregates payments based on:
- Time window: Settle every 15 minutes
- Volume threshold: Settle when pool reaches $100K
- Network conditions: Optimize for gas prices
3. On-Chain Settlement
Cost Comparison
Per-Transaction Model (Traditional)
| Item | Cost per TX |
|---|---|
| Gas Fee | $2.50 |
| Processing | $0.30 |
| Total (100 TX) | $280 |
Batched Model (Pelago)
| Item | Cost |
|---|---|
| Single Batch Gas | $5.00 |
| Pool Fee | $0.50 |
| Total (100 TX) | $5.50 |
98% cost reduction through batching.
Liquidity Provider Benefits
Earning Yield
Liquidity providers deposit stablecoins into the pool and earn:
| Source | APY |
|---|---|
| Transaction fees | 3-5% |
| Settlement spreads | 1-2% |
| Total | 4-7% |
No Impermanent Loss
Unlike DEX liquidity pools:
- Single-asset deposits (USDC only)
- No price volatility exposure
- Predictable, stable returns
Providing Liquidity
import { PelagoClient } from '@pelago/sdk';
const pelago = new PelagoClient({
apiKey: process.env.PELAGO_API_KEY!,
environment: 'production'
});
// Deposit liquidity
const deposit = await pelago.liquidity.deposit({
amount: 10000.00,
currency: 'USDC',
network: 'stellar',
walletAddress: 'GXXXX...'
});
console.log('Deposit ID:', deposit.id);
console.log('Pool Share:', deposit.sharePercentage);
Pool Mechanics
Reserve Requirements
The pool maintains reserves to ensure instant merchant credits:
Settlement Windows
| Network | Window | Max Batch Size |
|---|---|---|
| Stellar | 15 min | 1000 payments |
| Ethereum | 30 min | 500 payments |
| Polygon | 10 min | 2000 payments |
Smart Contract Interface
// Simplified PLP contract interface
interface IPaymentLiquidityPool {
// Merchant operations
function submitPayment(
bytes32 paymentId,
address merchant,
uint256 amount,
bytes calldata metadata
) external returns (bool);
// Settlement
function executeBatch(
bytes32[] calldata paymentIds
) external returns (uint256 totalSettled);
// Liquidity provider operations
function deposit(uint256 amount) external returns (uint256 shares);
function withdraw(uint256 shares) external returns (uint256 amount);
// View functions
function pendingSettlement(address merchant) external view returns (uint256);
function poolBalance() external view returns (uint256);
}
Risk Management
Pool Solvency
- Real-time monitoring of pool reserves
- Automatic withdrawal limits during stress
- Insurance fund for edge cases
Smart Contract Security
- Multiple third-party audits
- Bug bounty program ($500K max reward)
- Timelocked upgrades (48-hour delay)