Skip to main content

Funds - Treasury & Reserve Contracts

XRPL Testnet

Treasury & Fund Management

Access Control & Management

Reward Distribution

Core Pool Reward Distributors:

Curve Pool Reward Distributors:

Liquid Staked ETH Pool Reward Distributor:

Reward Tokens


Contract Descriptions

RTreasuryV8

Main treasury contract for managing protocol funds and reserve assets. Handles fund allocation, withdrawals, and governance.

RiskFundV2

Manages the protocol's risk reserves. Converts and holds base assets for use in shortfall events and liquidations.

ProtocolShareReserve

Tracks and manages the protocol's share of reserves collected from fees and other protocol revenue streams.

Shortfall

Handles the auction process when a pool's reserves are insufficient to cover shortfalls. Coordinates liquidations and fund recovery.

AccessControlManager

Central access control contract that manages permissions for all protocol functions across pools and contracts.

Timelocks (NormalTimelock, FastTrackTimelock, CriticalTimelock)

Time-locked execution contracts for governance decisions:

  • NormalTimelock: Standard 2-day delay for non-critical changes
  • FastTrackTimelock: Expedited process for time-sensitive changes
  • CriticalTimelock: Immediate execution for critical security matters (with multi-sig override)

RewardsDistributors

Manage the distribution of reward tokens (RFT, CRV, USDC) to suppliers and borrowers across different pools and markets.


Notes

  • All addresses are deployed on XRPL Testnet
  • Treasury and fund contracts are shared across all pools
  • Each pool has independent reward distributors for different reward tokens
  • Timelocks provide governance security with graduated delay periods
  • All contracts follow OpenZeppelin upgradeable proxy patterns