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

Feat/generic harvester #117

Merged
merged 69 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
4956509
feat: first version of generic harvester
0xtekgrinder Sep 13, 2024
513009b
feat: generic harvester swap and vault
0xtekgrinder Sep 13, 2024
455ea99
feat: remove access control from adjustYield
0xtekgrinder Sep 13, 2024
8b0a95d
feat: merge genericHarvester into a single contract
0xtekgrinder Sep 16, 2024
f620502
feat: multi block rebalancer
0xtekgrinder Sep 17, 2024
875665f
feat: correct permissions for MultiMockRebalancer
0xtekgrinder Sep 17, 2024
857caee
feat: slippage handling for MultiblockRebalancer
0xtekgrinder Sep 17, 2024
919971a
feat: remove old harvesters
0xtekgrinder Sep 20, 2024
cd1e1b4
feat: correct slippage computation for the vault
0xtekgrinder Sep 20, 2024
737b96c
feat: refactory harvesters to abstract common code
0xtekgrinder Sep 20, 2024
b7e1a89
feat: deploy scripts for new harvesters
0xtekgrinder Sep 20, 2024
9afc214
style: format BaseRebalancer
0xtekgrinder Sep 20, 2024
6580fdd
feat: remove comment
0xtekgrinder Sep 20, 2024
c2c6d06
chore: remove useless file
0xtekgrinder Sep 20, 2024
7b96168
fix: correct computation of slippage for XEVT
0xtekgrinder Sep 20, 2024
c3da3ef
feat: specify balance in finalizeRebalance function
0xtekgrinder Sep 20, 2024
88210b9
refactor: rename swap arguments
0xtekgrinder Sep 20, 2024
a4f4b85
refactor: change mapping of stablecoin to yieldbearing to the oposite
0xtekgrinder Sep 23, 2024
00ee738
feat: harvest function for both harvester contracts
0xtekgrinder Sep 23, 2024
6c3da10
feat: checkSlippage with decimals
0xtekgrinder Sep 23, 2024
5454e28
chore: remove old rebalancer interfaces
0xtekgrinder Sep 23, 2024
dfddaa3
style: fix lint issues for the new contracts
0xtekgrinder Sep 23, 2024
ef574fc
feat: remove useless setYieldBearingAssetData function override
0xtekgrinder Sep 29, 2024
4dd5a4f
feat: correct computation of the rebalancing
0xtekgrinder Oct 7, 2024
d8c9aa1
fix: correct sleeping check + toggleTrusted
0xtekgrinder Oct 7, 2024
3eb3da7
TEMP feat: tests
0xtekgrinder Oct 8, 2024
7b0d455
feat: computeRebalanceAmount public function
0xtekgrinder Oct 8, 2024
36d22ea
fix: correct rebalancing computation + min/max for stablecoin
0xtekgrinder Oct 8, 2024
e01866c
tests: add more complete tests for the harvesting of the different as…
0xtekgrinder Oct 8, 2024
3fc3e83
refactor: rename minExposure / maxExposure to be more explicit
0xtekgrinder Oct 8, 2024
378f35f
feat: check for msg.sender instead of receiver when removing budget
0xtekgrinder Oct 15, 2024
35132a8
doc: add some explanation on scale
0xtekgrinder Oct 15, 2024
8abc893
feat: system for allowed addresses to update the target exposure of a…
0xtekgrinder Oct 21, 2024
7c417ff
doc: finalize sentance
0xtekgrinder Oct 21, 2024
3e11a2b
doc: misspell
0xtekgrinder Oct 21, 2024
9a10225
feat: remove underflow checks
0xtekgrinder Oct 21, 2024
427eaf5
feat: make updateLimitExposure permissionless
0xtekgrinder Oct 21, 2024
dea0f6c
feat: internalize scaling of amount
0xtekgrinder Oct 21, 2024
4aa4cdc
feat: only allowed or guardian
0xtekgrinder Oct 21, 2024
0ba6215
fix: update state before sending tokens in addBudget
0xtekgrinder Oct 22, 2024
4b701a8
style: refactor blocks for GenericHarvester
0xtekgrinder Oct 22, 2024
e1c67a7
fix: better slippage handling for vaults
0xtekgrinder Oct 22, 2024
f9e9a5f
feat: IXEVT interface
0xtekgrinder Oct 22, 2024
d473b84
feat: refactor access control so there is only one onlyTrusted mapping
0xtekgrinder Oct 22, 2024
3bc5b0c
style: fix lint of comments
0xtekgrinder Oct 22, 2024
bcda179
tests: update tests to add missing functionnalities
0xtekgrinder Oct 22, 2024
2af51df
feat: remove mint and burn from MultiBlockHarvester
0xtekgrinder Oct 25, 2024
29df833
doc: typo
0xtekgrinder Oct 25, 2024
496dda8
feat: declare depositAddress in the upper scope
0xtekgrinder Oct 25, 2024
cf6b776
feat: simplify rebalance
0xtekgrinder Oct 25, 2024
29b7a5a
feat: specify block fork number
0xtekgrinder Oct 25, 2024
2b28e0f
refactor: rename stablecoin to depositAsset
0xtekgrinder Oct 25, 2024
791763f
feat: add unchecked blocks to _checkSlippage
0xtekgrinder Oct 25, 2024
cddfd4b
refactor: rename depositAsset to asset
0xtekgrinder Oct 25, 2024
7a39fc9
feat: remove MaxOrderAmount check
0xtekgrinder Oct 25, 2024
bfeac9e
tests: remove tooBigAmountIn
0xtekgrinder Oct 25, 2024
8146026
tests: setup of generic harvester + budget
0xtekgrinder Oct 25, 2024
08d8a28
tests: setters
0xtekgrinder Oct 25, 2024
e7fd84f
feat: revert if zero amount for GenericHarvester
0xtekgrinder Oct 25, 2024
2d0c3d2
fix: correct generic harvester swaps
0xtekgrinder Oct 28, 2024
1139a9b
tests: add not enough budget test
0xtekgrinder Oct 28, 2024
094f958
feat: remove swap slippage
0xtekgrinder Oct 28, 2024
bf111b9
tests: increase and decrease steak_USDC exposure
0xtekgrinder Oct 28, 2024
e303ae0
feat: remove swapSlippage variable
0xtekgrinder Oct 28, 2024
0fc36d0
feat: set maxSlippage to 0.3%
0xtekgrinder Oct 29, 2024
c85bfb8
tests: add generic harvester swap test
0xtekgrinder Oct 29, 2024
b05e00c
tests: add decimals tests
0xtekgrinder Oct 29, 2024
671eb76
feat: recover ERC20s
0xtekgrinder Oct 29, 2024
e5d7e51
feat: events for harvester
0xtekgrinder Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"error",
120
],
"immutable-vars-naming": "off",
"avoid-call-value": "warn",
"avoid-low-level-calls": "off",
"avoid-tx-origin": "warn",
Expand Down Expand Up @@ -38,4 +39,4 @@
"explicit"
]
}
}
}
359 changes: 224 additions & 135 deletions contracts/helpers/BaseHarvester.sol

Large diffs are not rendered by default.

113 changes: 0 additions & 113 deletions contracts/helpers/BaseRebalancerFlashloan.sol

This file was deleted.

Loading
Loading