terra-money / classic-core

GO implementation of the Terra Protocol
https://www.terra.money
Other
980 stars 287 forks source link

Which Part would i need to rip out to remove UST #767

Closed Franzferdinan51 closed 1 year ago

Franzferdinan51 commented 2 years ago

what parts of Core controls UST so i can remove it and mess with it in a test net is it Bank? or Treasury? or am i way off on that im looking for a starting place its an assumption that it goes deeper than the answer im looking for if anyone could help me out i'd appreciate it

ZaradarBH commented 2 years ago

I dont think the solution is to just rip out UST. Rather it is to reimplement the market Keeper logic @ https://github.com/terra-money/classic-core/blob/1302858e753f7985ff8ed73afcd951e111af5155/x/market/keeper/ and disable the code that was implemented to block the swapping & close the IBC channels @ https://github.com/terra-money/classic-core/blob/main/app/app.go#L591.

As such UST is a good idea, but the peg should be lowered to 10 cents on the dollar and minting should fail if the price of LUNA tokens drop below the new peg (10 cent). Furthermore a burn tax should be implemented as long as the circulating supply of LUNA is above 50B tokens and in doing so maybe we can restore some balance on the chain.

Franzferdinan51 commented 2 years ago

thank you

ZaradarBH commented 2 years ago

Feel free to pitch in if you have some Go coding skills :)