Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/sky
https://github.com/makerdao/sky
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdao/sky
- Owner: makerdao
- License: agpl-3.0
- Created: 2023-05-03T14:15:46.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2024-08-27T17:36:42.000Z (5 months ago)
- Last Synced: 2024-08-28T17:22:49.344Z (5 months ago)
- Language: Ruby
- Size: 596 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audit/ChainSecurity_MakerDAO_NGT_audit.pdf
Awesome Lists containing this project
README
# SKY Token and contract associated
This repository includes 2 smart contracts:
- SKY token
- MkrSky Converter### SKY token
This is a standard erc20 implementation with regular `permit` functionality + EIP-1271 smart contract signature validation.
In principle `PauseProxy` and `MkrSky` would be the only two contracts set as `wards(address)`.### MkrSky
It is a converter between `Mkr` and `Sky` (both ways). Using the `mint` and `burn` capabilities of both tokens it is possible to exchange one to the other. The exchange rate is 1:`rate` (value defined as `immutable`).
**Note:** if one of the tokens removes `mint` capabilities to this contract, it means that the path which gives that token to the user won't be available.
**Note 2:** In the MKR -> SKY conversion, if the user passes a `wad` amount not multiple of `rate`, it causes that a dusty value will be lost.