Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jul 29, 2024
1 parent 53a89fc commit deb2e53
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# Paladin Funnel Program

![](docs/funnel_program.jpg)

The Paladin Rewards Funnel program is a simple frontward-facing on-chain
program that manages the dispersal of rewards paid into the entire Paladin
system.

Reward shares are distributed across the governance, staking, and holder
ecosystems according to the formula found in the program's processor.

This program has only one instruction - `DistributeRewards` - which accepts an
amount to distribute to the three aforementioned targets. For the treasury,
this is done through a simple transfer. For the staker and holder ecosystems,
each program - Paladin Stake and Paladin Rewards, respectively - have their own
`DistributeRewards` instruction, which this funnel will invoke via CPI.

This program merely provides a simpler mechanism for distributing rewards
according to predefined ratios in an on-chain, transparent manner. There's
nothing this program does that can't be done client-side.
Binary file added docs/funnel_program.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion program/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//! Paladin Funnel program.
//! Paladin Rewards Funnel program.
//!
//! Manages the dispersal of rewards paid into the entire Paladin system.
//!
//! Reward shares are distributed across the governance, staking, and holder
//! ecosystems according to the formula found in the program's processor.

#[cfg(all(target_os = "solana", feature = "bpf-entrypoint"))]
mod entrypoint;
Expand Down

0 comments on commit deb2e53

Please sign in to comment.