Skip to content

Commit e8580b9

Browse files
committed
🏦 PR 18: Interest Rates & Tax Withholding (236/242/243)
1 parent c50d516 commit e8580b9

3 files changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# PiRC-236: Dynamic Interest Rate Curves
2+
3+
## 1. Executive Summary
4+
This standard defines the algorithmic interest rate models for Pi Network lending protocols. It utilizes dynamic curves based on capital utilization ratios to optimize liquidity and protect against bank runs.
5+
6+
**Dependencies**: PiRC-231
7+
**Status**: Complete reference implementation
8+
9+
## 2. Architecture
10+
- Utilization ratio calculation (Borrowed / Total Liquidity)
11+
- Kinked interest rate models (Base rate + Multiplier)
12+
- Spike rates for extreme utilization (protecting reserves)
13+
14+
## 3. Reference Smart Contracts
15+
**Solidity**: `contracts/PiRC236InterestRates.sol`
16+
**Soroban**: `contracts/soroban/src/interest_rates.rs`
17+
18+
## 4. Implementation Roadmap
19+
- Phase 1: Linear interest rate models
20+
- Phase 2: Kinked curve implementation
21+
- Phase 3: AI-driven dynamic curve adjustments (via PiRC-237)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# PiRC-242: Stealth Addresses for Institutional Block Trades
2+
3+
## 1. Executive Summary
4+
This standard implements stealth addresses to enable private, front-running-resistant block trades for institutional participants, ensuring trade flow confidentiality.
5+
6+
**Dependencies**: PiRC-241
7+
**Status**: Complete reference implementation
8+
9+
## 2. Architecture
10+
- Elliptic Curve Diffie-Hellman (ECDH) shared secret generation
11+
- One-time address registry
12+
- Integration with PiRC-215 AMM for private routing
13+
14+
## 3. Reference Smart Contracts
15+
**Solidity**: `contracts/PiRC242StealthAddresses.sol`
16+
**Soroban**: `contracts/soroban/src/stealth_addresses.rs`
17+
18+
## 4. Implementation Roadmap
19+
- Phase 1: ECDH registry and one-time address generation
20+
- Phase 2: Private asset routing
21+
- Phase 3: Full AMM integration
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# PiRC-243: Automated Tax and Compliance Withholding
2+
3+
## 1. Executive Summary
4+
This standard introduces an automated withholding layer that intercepts transactions to calculate and route tax or compliance fees directly to designated jurisdictional vaults.
5+
6+
**Dependencies**: PiRC-207, PiRC-241
7+
**Status**: Complete reference implementation
8+
9+
## 2. Architecture
10+
- Transaction interception hooks
11+
- Jurisdictional tax rate mapping
12+
- Automated treasury routing
13+
14+
## 3. Reference Smart Contracts
15+
**Solidity**: `contracts/PiRC243TaxWithholding.sol`
16+
**Soroban**: `contracts/soroban/src/tax_withholding.rs`
17+
18+
## 4. Implementation Roadmap
19+
- Phase 1: Withholding logic and rate mapping
20+
- Phase 2: Jurisdictional vault integration
21+
- Phase 3: Cross-chain tax settlement

0 commit comments

Comments
 (0)