Skip to content

Commit

Permalink
Merge pull request #6 from pickle-finance/mem-alloc-fix
Browse files Browse the repository at this point in the history
Fix redundant memory allocation for asset index type
  • Loading branch information
0xpenguin authored Oct 9, 2020
2 parents 595b388 + b5385d4 commit 7cd458b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strategies/curve/strategy-curve-scrv-v4_1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contract StrategyCurveSCRVv4_1 is StrategyBase {
return ICurveGauge(gauge).claimable_tokens(crvLocker);
}

function getMostPremium() public view returns (address, uint256) {
function getMostPremium() public view returns (address, uint8) {
uint256[] memory balances = new uint256[](4);
balances[0] = ICurveFi_4(curve).balances(0); // DAI
balances[1] = ICurveFi_4(curve).balances(1).mul(10**12); // USDC
Expand Down

0 comments on commit 7cd458b

Please sign in to comment.