Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ISettlerActions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,6 @@ interface ISettlerActions {
) external;

function CHECK_SLIPPAGE(bool transferExactLimit) external;

function CREDIBLE_CHECK_IMPACT(uint256 maxPriceImpactBps) external;
}
4 changes: 4 additions & 0 deletions src/chains/Mainnet/Common.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ abstract contract MainnetMixin is
assert(block.chainid == 1 || block.chainid == 31337);
}

event CredibleCheckImpact();

function _dispatch(uint256, uint256 action, bytes calldata data, AllowedSlippage memory slippage)
internal
virtual
Expand Down Expand Up @@ -194,6 +196,8 @@ abstract contract MainnetMixin is
abi.decode(data, (IERC20, uint256, IDodoV1, bool, uint256));

sellToDodoV1(sellToken, bps, dodo, quoteForBase, minBuyAmount);
} else if (action == uint32(ISettlerActions.CREDIBLE_CHECK_IMPACT.selector)) {
emit CredibleCheckImpact();
} else {
return false;
}
Expand Down
Loading