stablecoin
stablecoin copied to clipboard
a sample implementation of a non-collateralized stablecoin on substrate
hello dear ai cant run cargo build --release i get this message : Updating git repository `https://github.com/jimmychu0807/simple-json` error: failed to get `simple-json` as a dependency of package `pallet-price-fetch v1.2.0 (/temp/stablecoin/pallets/price-fetch)`...
+ Allow using the stablecoin as a base currency (for e.g. paying fees)? + Allow instantiating several stablecoins?
Make economics constants such as `MaximumBids` configurable on-chain by community to adjust to economic reality when running.
Extract out sanity checks from module functions to make them maintainable. (e.g. split `hand_out_coins` into `check_hand_out` and `do_hand_out_unchecked`)
+ Add more details on how they behave. + Add `O(n)` runtime cost docs.