Skip to content

Commit

Permalink
cleanup, rename playground to pricing test, add remappings.txt to mas…
Browse files Browse the repository at this point in the history
…sively speed up LSP
  • Loading branch information
mcclurejt committed Sep 5, 2024
1 parent f764193 commit 16b27ae
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 207 deletions.
4 changes: 2 additions & 2 deletions contracts/Everlong.sol
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ contract Everlong is IEverlong {
if (!_hyperdrive.isMature(position)) {
return output;
}
output += _hyperdrive.closeLongRaw(position, _closeLongParams);
output += _hyperdrive.closeLong(position, _closeLongParams);
_portfolio.handleClosePosition();
}
return output;
Expand Down Expand Up @@ -317,7 +317,7 @@ contract Everlong is IEverlong {
uint256 _targetOutput
) internal returns (uint256 output) {
while (!_portfolio.isEmpty() && output < _targetOutput) {
output += _hyperdrive.closeLongRaw(
output += _hyperdrive.closeLong(
_portfolio.head(),
_closeLongParams
);
Expand Down
Loading

0 comments on commit 16b27ae

Please sign in to comment.