makerdao / sdai

A tokenized wrapper around the DSR.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Savings DAI

A tokenized wrapper around the DSR. Supports ERC4626. Share to asset conversions are real-time even if the pot hasn't been dripped in a while.

Deployments

Commit 665879762f8b5df5d234463f45d1d6a49bd4fbeb (no referral):

Referral Code

The deposit and mint functions accept an optional uint16 referral parameter that frontends can use to mark deposits as originating from them. Such deposits emit a Referral(uint16 indexed referral, address indexed owner, uint256 assets, uint256 shares) event. This could be used to implement a revshare campaign, in which case the off-chain calculation scheme will likely need to keep track of any Transfer and Withdraw events following a Referral for a given token owner.

Copyright

This code was created by hexonaut. Since it should belong to the MakerDAO community the Copyright for the code has been transferred to Dai Foundation

About

A tokenized wrapper around the DSR.

License:GNU Affero General Public License v3.0


Languages

Language:Solidity 99.8%Language:Makefile 0.2%