diff --git a/contracts/SpokePool.sol b/contracts/SpokePool.sol index 96a6c770c..cdaaec7f7 100644 --- a/contracts/SpokePool.sol +++ b/contracts/SpokePool.sol @@ -720,74 +720,6 @@ abstract contract SpokePool is ); } - /** - * @notice DEPRECATED. Use depositV3() instead. - * @notice Submits deposit and sets exclusivityDeadline to current time plus some offset. This function is - * designed to be called by users who want to set an exclusive relayer for some amount of time after their deposit - * transaction is mined. - * @notice If exclusivtyDeadlineOffset > 0, then exclusiveRelayer must be set to a valid address, which is a - * requirement imposed by depositV3(). - * @param depositor The account credited with the deposit who can request to "speed up" this deposit by modifying - * the output amount, recipient, and message. - * @param recipient The account receiving funds on the destination chain. Can be an EOA or a contract. If - * the output token is the wrapped native token for the chain, then the recipient will receive native token if - * an EOA or wrapped native token if a contract. - * @param inputToken The token pulled from the caller's account and locked into this contract to - * initiate the deposit. The equivalent of this token on the relayer's repayment chain of choice will be sent - * as a refund. If this is equal to the wrapped native token then the caller can optionally pass in native token as - * msg.value, as long as msg.value = inputTokenAmount. - * @param outputToken The token that the relayer will send to the recipient on the destination chain. Must be an - * ERC20. - * @param inputAmount The amount of input tokens to pull from the caller's account and lock into this contract. - * This amount will be sent to the relayer on their repayment chain of choice as a refund following an optimistic - * challenge window in the HubPool, plus a system fee. - * @param outputAmount The amount of output tokens that the relayer will send to the recipient on the destination. - * @param destinationChainId The destination chain identifier. Must be enabled along with the input token - * as a valid deposit route from this spoke pool or this transaction will revert. - * @param exclusiveRelayer The relayer that will be exclusively allowed to fill this deposit before the - * exclusivity deadline timestamp. - * @param quoteTimestamp The HubPool timestamp that is used to determine the system fee paid by the depositor. - * This must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime] - * where currentTime is block.timestamp on this chain or this transaction will revert. - * @param fillDeadline The deadline for the relayer to fill the deposit. After this destination chain timestamp, - * the fill will revert on the destination chain. Must be set between [currentTime, currentTime + fillDeadlineBuffer] - * where currentTime is block.timestamp on this chain or this transaction will revert. - * @param exclusivityPeriod Added to the current time to set the exclusive relayer deadline, - * which is the deadline for the exclusiveRelayer to fill the deposit. After this destination chain timestamp, - * anyone can fill the deposit. - * @param message The message to send to the recipient on the destination chain if the recipient is a contract. - * If the message is not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert. - */ - function depositExclusive( - address depositor, - address recipient, - address inputToken, - address outputToken, - uint256 inputAmount, - uint256 outputAmount, - uint256 destinationChainId, - address exclusiveRelayer, - uint32 quoteTimestamp, - uint32 fillDeadline, - uint32 exclusivityPeriod, - bytes calldata message - ) public payable { - depositV3( - depositor.toBytes32(), - recipient.toBytes32(), - inputToken.toBytes32(), - outputToken.toBytes32(), - inputAmount, - outputAmount, - destinationChainId, - exclusiveRelayer.toBytes32(), - quoteTimestamp, - fillDeadline, - exclusivityPeriod, - message - ); - } - /** * @notice Depositor can use this function to signal to relayer to use updated output amount, recipient, * and/or message.