Skip to content

Commit 10ff9eb

Browse files
authored
Merge branch 'dev' into fix/cantina-11-comments
2 parents 66a568a + 61cbc57 commit 10ff9eb

File tree

3 files changed

+6
-342
lines changed

3 files changed

+6
-342
lines changed

src/ForeignController.sol

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -482,46 +482,6 @@ contract ForeignController is ReentrancyGuard, AccessControlEnumerable {
482482
);
483483
}
484484

485-
/**********************************************************************************************/
486-
/*** Relayer Morpho functions ***/
487-
/**********************************************************************************************/
488-
489-
function setSupplyQueueMorpho(address morphoVault, Id[] memory newSupplyQueue)
490-
external
491-
nonReentrant
492-
onlyRole(RELAYER)
493-
rateLimitExists(RateLimitHelpers.makeAddressKey(LIMIT_4626_DEPOSIT, morphoVault))
494-
{
495-
proxy.doCall(
496-
morphoVault,
497-
abi.encodeCall(IMetaMorpho(morphoVault).setSupplyQueue, (newSupplyQueue))
498-
);
499-
}
500-
501-
function updateWithdrawQueueMorpho(address morphoVault, uint256[] calldata indexes)
502-
external
503-
nonReentrant
504-
onlyRole(RELAYER)
505-
rateLimitExists(RateLimitHelpers.makeAddressKey(LIMIT_4626_DEPOSIT, morphoVault))
506-
{
507-
proxy.doCall(
508-
morphoVault,
509-
abi.encodeCall(IMetaMorpho(morphoVault).updateWithdrawQueue, (indexes))
510-
);
511-
}
512-
513-
function reallocateMorpho(address morphoVault, MarketAllocation[] calldata allocations)
514-
external
515-
nonReentrant
516-
onlyRole(RELAYER)
517-
rateLimitExists(RateLimitHelpers.makeAddressKey(LIMIT_4626_DEPOSIT, morphoVault))
518-
{
519-
proxy.doCall(
520-
morphoVault,
521-
abi.encodeCall(IMetaMorpho(morphoVault).reallocate, (allocations))
522-
);
523-
}
524-
525485
/**********************************************************************************************/
526486
/*** Spark Vault functions ***/
527487
/**********************************************************************************************/

src/libraries/UniswapV4Lib.sol

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,10 @@ library UniswapV4Lib {
450450
{
451451
bytes memory actions = abi.encodePacked(
452452
uint8(Actions.INCREASE_LIQUIDITY),
453-
uint8(Actions.CLOSE_CURRENCY),
454-
uint8(Actions.CLOSE_CURRENCY)
453+
uint8(Actions.SETTLE_PAIR)
455454
);
456455

457-
bytes[] memory params = new bytes[](3);
456+
bytes[] memory params = new bytes[](2);
458457

459458
params[0] = abi.encode(
460459
tokenId, // Position to increase
@@ -464,8 +463,10 @@ library UniswapV4Lib {
464463
"" // No hook data needed
465464
);
466465

467-
params[1] = abi.encode(poolKey.currency0);
468-
params[2] = abi.encode(poolKey.currency1);
466+
params[1] = abi.encode(
467+
poolKey.currency0, // First token to settle
468+
poolKey.currency1 // Second token to settle
469+
);
469470

470471
return _getModifyLiquiditiesCallData(actions, params);
471472
}

test/base-fork/MorphoAllocations.t.sol

Lines changed: 0 additions & 297 deletions
This file was deleted.

0 commit comments

Comments
 (0)