Skip to content

mevbandit/magic-beans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offensive stablecoin protocol rebalancing: Bean Finance

Beanstalk is a stablecoin protocol that uses a decentralized credit facility, variable supply and self-adjusting interest rate, to regularly cross the stablecoin price over its value peg without affecting users.

To stabilize the value of the peg and ensure 'protocol native time-keeping', there is a function sunrise() that can be called once a 'season' (every hour). The award for calling it starts at 100 Beans and compounds 1% every additional second that elapses past the beginning of the season for up to 300 seconds.

Strategy

Send FB request to call the function every 5 seconds with high enough gas bid outprice everyone else - this requires you to be willing to burn capital up front; after denying all other bots from enough seasons, they will eventually be turned off (which you can test by delaying the call for a single block) due to node running costs. Then, wait 300 seconds before calling to maximize the sunrise() reward for as many blocks until the competitors return, and then repeat.*

About

Battering ram beanstalk rebalancing bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published