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.
- Loading branch information
1 parent
c85bfb8
commit b05e00c
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: Unlicensed | ||
pragma solidity ^0.8.19; | ||
|
||
import "contracts/helpers/BaseHarvester.sol"; | ||
|
||
contract MockScaleDecimals is BaseHarvester { | ||
constructor( | ||
uint96 initialMaxSlippage, | ||
IAccessControlManager definitiveAccessControlManager, | ||
IAgToken definitiveAgToken, | ||
ITransmuter definitiveTransmuter | ||
) BaseHarvester(initialMaxSlippage, definitiveAccessControlManager, definitiveAgToken, definitiveTransmuter) {} | ||
|
||
function harvest(address yieldBearingAsset, uint256 scale, bytes calldata extraData) external override {} | ||
|
||
function scaleDecimals( | ||
uint256 decimalsTokenIn, | ||
uint256 decimalsTokenOut, | ||
uint256 amountIn, | ||
bool assetIn | ||
) external pure returns (uint256) { | ||
return _scaleAmountBasedOnDecimals(decimalsTokenIn, decimalsTokenOut, amountIn, assetIn); | ||
} | ||
} |