Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SpokePool): Remove depositExclusive #642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
68 changes: 0 additions & 68 deletions contracts/SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -669,74 +669,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 reayer 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,
recipient,
inputToken,
outputToken,
inputAmount,
outputAmount,
destinationChainId,
exclusiveRelayer,
quoteTimestamp,
fillDeadline,
exclusivityPeriod,
message
);
}

/**
* @notice Depositor can use this function to signal to relayer to use updated output amount, recipient,
* and/or message.
Expand Down
Loading