{"id":19096766,"url":"https://github.com/sky-ecosystem/usds","last_synced_at":"2025-08-22T03:31:39.613Z","repository":{"id":240101735,"uuid":"635803405","full_name":"makerdao/usds","owner":"makerdao","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-07T13:03:45.000Z","size":1962,"stargazers_count":36,"open_issues_count":0,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-13T07:42:18.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makerdao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit/20231124-cantina-report-review-makerdao-nst.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T13:40:54.000Z","updated_at":"2024-10-29T22:17:45.000Z","dependencies_parsed_at":"2024-05-16T18:56:43.785Z","dependency_job_id":"7c1758b9-91f8-4980-9786-30252044a5bb","html_url":"https://github.com/makerdao/usds","commit_stats":null,"previous_names":["makerdao/nst","makerdao/usds"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makerdao%2Fusds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makerdao%2Fusds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makerdao%2Fusds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makerdao%2Fusds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makerdao","download_url":"https://codeload.github.com/makerdao/usds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230554330,"owners_count":18244234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:37:41.390Z","updated_at":"2025-08-22T03:31:33.978Z","avatar_url":"https://github.com/makerdao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# USDS Token and contracts associated\n\nThis repository includes 3 smart contracts:\n\n- USDS token\n- UsdsJoin\n- DaiUsds Converter\n\n### USDS token\n\nThis is a standard erc20 implementation with regular `permit` functionality + EIP-1271 smart contract signature validation.\n\nThe token uses the ERC-1822 UUPS pattern for upgradeability and the ERC-1967 proxy storage slots standard.\nIt is important that the `UsdsDeploy` library sequence be used for deploying the token.\n\n#### OZ upgradeability validations\n\nThe OZ validations can be run alongside the existing tests:  \n`VALIDATE=true forge test --ffi --build-info --extra-output storageLayout`\n\n### UsdsJoin\n\nThis is the contract in charge of `mint`ing the erc20 IOUs in exchange of native `vat.dai` balance. It also manages the reverse operation, `burn`ing tokens and releasing `vat.dai`.\nA noticeable code difference against `DaiJoin` is this contract doesn't have any permissions system at all.\nHowever, in practice, `UsdsJoin` acts the exact same way as the production `DaiJoin` implementation. This is because there isn't any `wards(address)` set there.\n\n### DaiUsds\n\nIt is a permissionless converter between `Dai` and `Usds` (both ways). Using the `public` functions of `UsdsJoin` and `DaiJoin` moves from one token to the other. The exchange rate is 1:1.\nIt is just a \"convenience\" contract, users could still get the same outcome executing the separate methods in the `join`s or use any other converter implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-ecosystem%2Fusds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-ecosystem%2Fusds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-ecosystem%2Fusds/lists"}