|
1 | 1 | /// **This submission does not need to be judged due to being incomplete***
|
2 | 2 | ///
|
3 | 3 | /// XRDao protocol is built for medium to long term XRD holders and XRD altcoin
|
4 |
| -/// investors. XRDao is the main component where most of the interactions |
5 |
| -/// take place. This blueprint allows users to mint XRDao which is pegged 1:1 to XRD. The |
6 |
| -/// XRDao token has a small tax taken for every trade, transfer, mint, or burn starting at .5% |
7 |
| -/// and can change from governance vote. Platform fees go towards buying protocol owned |
8 |
| -/// liquidity from the radiswap component and rewarding users |
9 |
| -/// |
10 |
| -/// The basis of this platform is that as |
11 |
| -/// Users can add Radix altcoins to the investments available for the platform by |
12 |
| -/// governance proposal and vote. Users take their XRDao tokens and invest in these |
13 |
| -/// tokens in similar ways as doing it themselves. Users are incentivized to use the |
14 |
| -/// platform by earning repuataion (rep) tokens when making successful trades and/or earning |
15 |
| -/// fees for the protocol. The more rep a user earns, the higher rank the user can achieve. |
16 |
| -/// Higher ranks allow users to |
17 |
| -/// 1) Earn substantially higher shares of platform fees distributed |
18 |
| -/// 2) Increases Users base voting power curve |
19 |
| -/// 3) |
20 |
| -/// |
21 |
| -/// |
22 |
| -/// |
23 |
| -/// the protocol takes a small fee on minting and burning |
24 |
| -/// |
25 |
| -/// The |
26 |
| -/// |
27 |
| -/// |
28 |
| -/// |
29 |
| -/// XRDaoUsers component organizes users information and stores this |
30 |
| -/// data on soul bound tokens (SBTs) given to each user. This component is responsible |
31 |
| -/// for keeping all data and balances up to date on these SBTs. |
32 |
| -/// |
33 |
| -/// XRDaoProposal component allows users to create |
| 4 | +/// investors that are interested in a sustainable rewards structure. XRDao is the main |
| 5 | +/// component where most of the interactions take place. This blueprint allows users to mint |
| 6 | +/// XRDao which is pegged 1:1 to XRD. The XRDao token has a small tax taken for every trade, |
| 7 | +/// transfer, mint, or burn starting at .5% and can change from governance vote. A percent of platform |
| 8 | +/// fees (which also can change via governanve vote) go towards buying protocol owned liquidity from the |
| 9 | +/// radiswap component. The rest of platform fees collected are distributed to users of XRDao |
| 10 | +/// that make successful trades and strategies when investing through the platform. Future investment |
| 11 | +/// choices will be added along with altcoin investing such as staking to trustworthy validators, loaning |
| 12 | +/// funds to a lending platform for interest. In order to use XRDao, a user would send XRD |
| 13 | +/// to the platform and mint XRDao token. The exchange rate for minting and burning XRDao always remains |
| 14 | +/// 1:1 minus the buy/sell fee. The user would then use these XRDao tokens to pick investment options |
| 15 | +/// just as they would with XRD, but the platform would be making the actual trades/stakes for you. |
| 16 | +/// When a user makes a successful trade, Repuation (rep) tokens are awarded for the amount of xrd earned. |
| 17 | +/// |
| 18 | +/// For example: |
| 19 | +/// User 1 has 100 xrd and mints 99.5 xrdao, |
| 20 | +/// User 1 invests 99.5 xrdao into oci, |
| 21 | +/// Oci goes 2x up in price relative to xrd, |
| 22 | +/// User 1 exits oci position |
| 23 | +/// User 1 sends xrdao to burn in return for xrd |
| 24 | +/// |
| 25 | +/// User 1 now has 198.005 xrdao tokens that can be burned and exchanged for xrd minus the burn fee, as |
| 26 | +/// well as 1.495 Rep. Rep is a soulbound token created by the XRDao platform to signify who is most profitable |
| 27 | +/// for the platform. It can't be bought, sold, or traded, but it can be earned and minted for good behavior |
| 28 | +/// or removed and burned for bad behavior. Users are catagorized into Rank by the amount of rep they hold |
| 29 | +/// into the following ranks: |
| 30 | +/// |
| 31 | +/// President, Highest rep, linear relationship between xrdao and voting power, top 1% of users, 3x reward multiplier |
| 32 | +/// VicePresident, x = y^1.1 voting power, top 10% of users, 1.67x reward multiplier |
| 33 | +/// Senator, x = y^1.2 voting power, top 30% of users, 1.25x reward multiplier |
| 34 | +/// Governor, x = y^1.3 voting power, top 50% of users, 1x reward multiplier |
| 35 | +/// Citizen, x = y^1.5 voting power, top 75% of users, .925x reward multiplier |
| 36 | +/// Pleb, Lowest rep, quadratic relationship, x = y^2 voting power, top 100% of users, 0x reward multiplier |
| 37 | +/// |
| 38 | +/// As you can see, different ranks give different curves to determine voting power and different shares of the |
| 39 | +/// fees generated from the platform. The more money you make, the more rep you earn, the more fees you acrue. |
| 40 | +/// You might be asking yourself, why wouldnt these users just invest themselves and avoid platform fees |
| 41 | +/// alltogether? XRDao harneses sustainable revenues from market volatility. When the protocol buys liquidity |
| 42 | +/// from radiswap for XRDao-XRD, XRD volatility will generate price differences between the two tokens in the pool. |
| 43 | +/// When there is ever a price difference above the fee that is being charged (.5%) there will be a profitable |
| 44 | +/// arbitration opportunity within the pool. Whether an arbitrage bot or a user makes it, fees are then |
| 45 | +/// generated from that trade and go back to buying more liquidity and rewarding each user based on reputation. |
| 46 | +/// |
| 47 | +/// The majority of my work here is to the xrdaouser and user components. Tokentax is a start of an attempt to |
| 48 | +/// design a component that a token must pass through in order to extract taxes from dex transactions. My |
| 49 | +/// understanding is this feature doesnt current work at the resource level, but hopefully it will be in the |
| 50 | +/// future. xrdaoproposal is mostly still copy paste from the Liquidity Dao scrypto examples. Radiswap is instantiated |
| 51 | +/// to trade and provide liquidity for XRDao-XRD token. |
| 52 | +/// |
| 53 | +/// written by Austin |
| 54 | +/// @aus877 on twitter |
| 55 | +/// @aus87 on telegram |
| 56 | +
|
34 | 57 |
|
35 | 58 | mod radiswap;
|
36 | 59 | mod xrdao;
|
|
0 commit comments