liquity / ChickenBond

GNU General Public License v3.0
33 stars 5 forks source link

Macro economic model for Chicken Bonds #5

Open bingen opened 2 years ago

bingen commented 2 years ago

Vanilla Chicken Bonds

First approach with only bonds, no AMM, no lending.

4 years run

001_0_0_1_bonds_Chicken_bonds_state 001_0_0_2_bonds_sTOKEN_price 001_0_0_3_bonds_APRs

bingen commented 2 years ago

Chicken bonds with AMM

Same as before but now with sTOKEN / TOKEN AMM:

001_0_2_1_bonds_amm_2_Chicken_bonds_state 001_0_2_2_bonds_amm_2_sTOKEN_price 001_0_2_3_bonds_amm_2_APRs

bingen commented 2 years ago

Chicken bonds with AMM and rebonding

Same as before but now 20 out of the 100 users will always try to rebond right after they reach the cap (it’s not yet the best strategy, they should wait more due to the toll for the AMM). They are brave chicks and never chicken out.

As shown in the last chart, they are outperforming their lazier or more coward fellows, but to do a fair comparison we should optimize regular chicken in/up strategies and have the same behaviour about chicken outs.

Another clear difference appears in the initial stage: rebonders take longer to start chickening in, as they always chicken in (50%) or up (50%) right after they reach the cap, not before nor afterwards, and that implies:

001_0_5_1_bonds_amm_2_rebonding_Chicken_bonds_state 001_0_5_2_bonds_amm_2_rebonding_sTOKEN_price 001_0_5_3_bonds_amm_2_rebonding_APRs 001_0_5_6_bonds_amm_2_rebonding_Chick_balances

bingen commented 2 years ago

Chicken bonds with AMM and dynamic toll

Same as “Chicken bonds with AMM” but now with dynamic toll. This means that instead of diverting always 20% of the funds to the AMM, the percentage will vary. The curve followed is the purple one here: https://www.desmos.com/calculator/6ze6tloxk3 where x-axis is the ratio between price and backing ratio. So the higher the market price compared to the redemption price, the higher the toll rate, capped at 50% to avoid throttling the system too much. Other differences are:

The most important difference we can observe (2nd chart) is that now the premium, the difference between backing ratio (redemption price) and both reserve price (fair price) and market price is lower. Due to a smaller toll and less aggressive target profits, chicken-ins are more frequents, which leaves less outstanding bonds on average. First chart confirm this with bigger green bars (“POL”) compared to dark blue ones (“Coop”). AMM in proportion is also smaller, but enough to satisfy the demands, so in that regard the system seems healthier.

001_0_6_1_bonds_amm_dynamic_toll_2_Chicken_bonds_state 001_0_6_2_bonds_amm_dynamic_toll_2_sTOKEN_price 001_0_6_3_bonds_amm_dynamic_toll_2_APRs