USDS (Sky Dollar) is the stablecoin that replaced DAI as the main dollar token of Sky, the protocol formerly known as MakerDAO. If you build wallets, dashboards or treasury tools, you will probably meet two tokens: USDS itself, and sUSDS, the savings token that earns the Sky Savings Rate. This post looks at both from a developer's point of view, with a small Python script that reads the live savings rate straight from the contract.
For the non-technical background (how USDS is backed, how it differs from DAI and USDC, risks and taxes), see this plain-English guide to the USDS stablecoin .
USDS in one paragraph
USDS aims to stay worth $1. It is minted by smart contracts against overcollateralized positions, and holders of the SKY governance token vote on the rules. DAI and USDS convert 1:1 in both directions with no fee. On Ethereum, USDS is a standard ERC-20 with 18 decimals, unlike USDC's 6.…