DSSToken
is an example ERC721 token that uses dss. The contract
makes use of several DSS
counters:
coins
tracks the current token ID.price
is used to calculate themint
price.- Each token has its own
count
, accessible to the token owner.
To mint
your own DSSToken
, call mint
and send ether equal to the current cost
.
The minimum cost
of a DSSToken
is 0.01 ether. However, anyone may call hike
and drop
to modify the
current cost
by 10%. If you choose to mint
, consider using
Flashbots Protect to avoid unwanted reverts if the token price changes while your transaction is pending.
Additionally, mint
, hike
, and drop
will distribute CTR
governance token to
the caller if a sufficient balance remains in the DSSToken
contract.
Proceeds from dss-token
will offset the cost of dss
deployment and compensate the CounterDAO Protocol
Engineering Core Unit.
cost
: Get the currentmint
price.see
: Read a token's counter.
mint
: Mint aDSSToken
to caller.hike
: Increasecost
by 10%.drop
: Decreasecost
by 10%.
hit
: Increment a token's counter. Token owner only.dip
: Decrement a token's counter. Token owner only.
DSSToken
:0xed15e2191A06086DD31Ef0397C07Ca40cb985abE