https://github.com/cawfree/microstable-yul
Most simple design of a stablecoin.
https://github.com/cawfree/microstable-yul
dyad ethereum evm foundry microstable shafu stablecoin yul
Last synced: 7 days ago
JSON representation
Most simple design of a stablecoin.
- Host: GitHub
- URL: https://github.com/cawfree/microstable-yul
- Owner: cawfree
- Created: 2024-12-07T13:40:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T01:42:04.000Z (10 months ago)
- Last Synced: 2025-10-02T10:00:07.300Z (14 days ago)
- Topics: dyad, ethereum, evm, foundry, microstable, shafu, stablecoin, yul
- Language: Solidity
- Homepage: https://github.com/shafu0x/MicroStable-World
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroStable-Yul
A [**Standalone Yul**](https://docs.soliditylang.org/en/latest/yul.html) implementation of [**shafu0x**](https://x.com/shafu0x)'s [**MicroStable**](https://github.com/shafu0x/MicroStable), a minimum viable stablecoin based loosely on [**DYAD**](https://github.com/DyadStablecoin/contracts).
This is a submission to [**MicroStable World**](https://github.com/shafu0x/MicroStable-World) 🌍!
### 🚀 Getting Started
This project uses [**Foundry**](https://getfoundry.sh/).
```sh
git clone https://github.com/cawfree/MicroStable-Yul
cd MicroStable-Yul
forge install# Currently Foundry may only build one Yul file at a time,
# so we build these here manually. To run tests, the Yul
# bytecode is manually parsed from the `out/` directory,
# requiring a call to `vm.ffi`.
forge build src/Manager.yul
forge build src/ShUSD.yul
forge test --ffi
```## 🙏 Made possible thanks to
- [`foundry-yul`](https://github.com/CodeForcer/foundry-yul)
- [`erc721Yul`](https://github.com/0xfabdav/erc721Yul)## ✌️ License
[**CC0-1.0**](LICENSE)