-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(examples/ocean-dbtc-burning-bot): DFIP 2201-A, an automated wallet bot to burn dBTC #981
Conversation
Code Climate has analyzed commit be0c402 and detected 0 issues on this pull request. View more on Code Climate. |
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: 443430c 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/61e418e56a840eb5437e7a1a 😎 Browse the preview: https://deploy-preview-981--jellyfish-defi.netlify.app |
Codecov Report
@@ Coverage Diff @@
## main #981 +/- ##
==========================================
+ Coverage 92.15% 96.20% +4.04%
==========================================
Files 158 158
Lines 4820 4820
Branches 634 634
==========================================
+ Hits 4442 4637 +195
+ Misses 358 176 -182
+ Partials 20 7 -13
Continue to review full report at Codecov.
|
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: be0c402 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/61e4192ee65002000700c589 😎 Browse the preview: https://deploy-preview-981--jellyfish-defi.netlify.app |
What this PR does / why we need it:
Ocean dBTC Burning Bot, part of DFIP 2201-A requirement; an automated wallet bot to burn dBTC.
This is a very simple dBTC burning bot that is deployed on df1qc8ptw6vc9588w6f53fvcjsjx0fntv3men407a9 address.
Implementation
With a predefined
main()
as the entry function, this bot take all DFI accumulated from BURN-DFI pool rewards (3.5% from BTC-DFI). Swapping them from DFI to BTC and then finally sending it to the burn address8defichainBurnAddressXXXXXXXdRQkSm
.Deployment
Deployed on AWS lambda, this bot is compiled with vercel/ncc via build.js which produce a single file that support TypeScript and binary addons (tiny-secp256k1).
npm i npm run build # Upload ./dist/main.zip into AWS Lambda