Skip to content
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

Bot optimization #156

Merged
merged 32 commits into from
Jun 9, 2021
Merged

Bot optimization #156

merged 32 commits into from
Jun 9, 2021

Conversation

c0rv0s
Copy link
Contributor

@c0rv0s c0rv0s commented Jun 9, 2021

Harvest
New script strategy_earnings static calls strategy contract to get pending rewards and calculates profit in ETH using 0x api. Gas cost of the harvest function is subtracted from this to get expected profit

building on the requirement listed in #88

Works for all harvestable strategies on mainnet and bsc (tested on local forked networks) with the exception of the yearn wbtc strategy which it is set to skip on mainnet-fork.

Tend
Profit estimation, same as for Harvest, works for mainnet and bsc

Rebase
New check added to rebase script that makes sure the second require statement in the on-chain rebase function
require(lastRebaseTimestampSec.add(minRebaseTimeIntervalSec) < now);
will pass before trying to call.

Tx timer
(Integrated with harvest, rebase and tend bots) time transactions, if they don't confirm within a specified time range send an alert via discord.

@c0rv0s c0rv0s merged commit 5ded115 into master Jun 9, 2021
@c0rv0s c0rv0s deleted the bot-optimization-rebase branch June 9, 2021 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant