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

IPF #182

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

IPF #182

wants to merge 4 commits into from

Conversation

a17
Copy link
Member

@a17 a17 commented Nov 14, 2024

  • integration interfaces
  • constants
  • routes
  • farms
  • skeleton
  • universal test
  • implementation
  • deploy script

@a17 a17 added the STRATEGY Strategy logic proposed for implementation label Nov 14, 2024
@a17 a17 self-assigned this Nov 14, 2024
@a17 a17 linked an issue Nov 14, 2024 that may be closed by this pull request
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.26%. Comparing base (6a07076) to head (d94f09a).

Files with missing lines Patch % Lines
src/strategies/libs/StrategyDeveloperLib.sol 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #182      +/-   ##
==========================================
- Coverage   97.30%   97.26%   -0.05%     
==========================================
  Files          64       64              
  Lines        4641     4643       +2     
  Branches      514      515       +1     
==========================================
  Hits         4516     4516              
- Misses        107      109       +2     
  Partials       18       18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +90 to +93
function extra() external pure returns (bytes32) {
// todo
return CommonLib.bytesToBytes32(abi.encodePacked(bytes3(0x965fff), bytes3(0x000000)));
}

Check warning

Code scanning / Slither

Too many digits Warning

Comment on lines +251 to +258
function _fetchSpot(
address _tokenIn,
address _tokenOut,
int _tick,
uint _amountIn
) internal pure returns (uint amountOut) {
// return IQMFLib.getQuoteAtTick(int24(_tick), SafeCast.toUint128(_amountIn), _tokenIn, _tokenOut);
}

Check warning

Code scanning / Slither

Dead-code Warning

Comment on lines +269 to +284
function _fetchTwap(
address _pool,
address _tokenIn,
address _tokenOut,
uint32 _twapPeriod,
uint _amountIn
) internal view returns (uint amountOut) {
// Leave twapTick as a int256 to avoid solidity casting
/*int twapTick = IQMFLib.consult(_pool, _twapPeriod);
return IQMFLib.getQuoteAtTick(
int24(twapTick), // can assume safe being result from consult()
SafeCast.toUint128(_amountIn),
_tokenIn,
_tokenOut
);*/
}

Check warning

Code scanning / Slither

Dead-code Warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STRATEGY Strategy logic proposed for implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📜 [DEV] Ichi Pearl Farm
1 participant