Skip to content

goldenagellc/DSD-Coupon-Clipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coupon-Clipper

A Coupon Clipper for DSD. Easy-access UI will be available here within a week.

Disclaimer: This code is not unaudited. Interact with it at your own risk, and do not send tokens to it. DeFi can be dangerous; exercise discretion.

Summary

The Dynamic Set Dollar protocol incentivizes users to burn their tokens by offering coupons when DSD is worth less than $1. If the price rises above $1, coupons can be redeemed for extra DSD. Unfortunately, coupons expire, and bots have an advantage in the first-come-first-serve system. This contract lets you put the bots to work!

We've set the initial house fee to 50% of each offer. Every time a bot generates 100000DSD for the house, the house's cut will be halved for that bot's transactions. This results in a more fair playing field for the bots, and rewards long-time players for their commitment.

An example: If Bot A has earned 150000DSD for the house, the house cut drops to 50/2**1 = 25% of each offer. If Bot B has earned 300001DSD for the house, the house cut drops to 50/2**3 = 12.5% of each offer. Due to rounding, the house cut eventually goes to zero.

Because of DIP-2, some coupons also get burned if redeemed in the first hour of an epoch. This contract allows users to specify the maximum percentage of coupons they are willing to burn (default is 0%).

Deployed Contract

CouponClipper is deployed to 0x059CA23eFF4e608B7E1ceB1aa62234C6EBcc294D and the code is verified on Etherscan.

How does it work?

Users can interact with the contract directly or go to dynamicdollar.coupons (currently under construction) to configure their tip and approve the contract.

This will emit a CouponApproval event for which bots can listen. When coupons become available, bots can call a variety of functions to redeem the coupons of one or more users. The users' new DSD will magically appear in their account. Users can increase this tip size via the setOffer function.

About

Bribe bots to redeem your DSD coupons

Resources

License

Stars

Watchers

Forks