generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Harvester and Balancer with swap logic * fix: forwardUtils now sends error * feat: use Swapper from utils * refactor: remove duplicated code * fix: correct asset and collateral for HarvesterVault * fix: handle slippage with different decimals * feat: scale of harvested amount * tests: all rebalancer and harvester swap tests * fix: correct slippage handling for RebalancerSwap * style: remove lint issues * feat: abstract onFlashLoan * fix: script updateFacets tests
- Loading branch information
1 parent
d592dd9
commit 1c417c4
Showing
29 changed files
with
1,118 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.23; | ||
|
||
import "./BaseHarvester.sol"; | ||
|
||
/// @title HarvesterSwap | ||
/// @author Angle Labs, Inc. | ||
/// @dev Contract for anyone to permissionlessly adjust the reserves of Angle Transmuter through | ||
/// the RebalancerFlashloanSwap contract | ||
contract HarvesterSwap is BaseHarvester { | ||
constructor( | ||
address _rebalancer, | ||
address collateral, | ||
address asset, | ||
uint64 targetExposure, | ||
uint64 overrideExposures, | ||
uint64 maxExposureYieldAsset, | ||
uint64 minExposureYieldAsset, | ||
uint96 _maxSlippage | ||
) | ||
BaseHarvester( | ||
_rebalancer, | ||
collateral, | ||
asset, | ||
targetExposure, | ||
overrideExposures, | ||
maxExposureYieldAsset, | ||
minExposureYieldAsset, | ||
_maxSlippage | ||
) | ||
{} | ||
} |
Oops, something went wrong.