This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* function for token swap - will be called from LocalETHDeposit conract on Arbitrum or Optimism | |
* @param _userAccount who deposited ETH on Arbitrum or Optimism | |
* @param _value amount of ETH deposited by user | |
*/ | |
function swapXchain(address _userAccount, uint256 _value) external whenNotPaused { | |
require(isETHTrade(), "token sale not set to ETHTrade"); | |
require(omni.isTxFromOneOf("arbitrum-goerli", "optimism-goerli")); | |
if (omni.isTxFrom("arbitrum-goerli")) { |