Skip to content

Commit

Permalink
contracts: add eth gateway docstring (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes authored May 10, 2021
1 parent 710dbe5 commit 2731b6c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ contract OVM_L1ETHGateway is iOVM_L1ETHGateway, OVM_CrossDomainEnabled, Lib_Addr
*****************************/

/**
* @dev migrates entire ETH balance to another gateway
* @dev Migrates entire ETH balance to another gateway
* @param _to Gateway Proxy address to migrate ETH to
*/
function migrateEth(address payable _to) external {
Expand All @@ -190,5 +190,9 @@ contract OVM_L1ETHGateway is iOVM_L1ETHGateway, OVM_CrossDomainEnabled, Lib_Addr
OVM_L1ETHGateway(_to).donateETH{value:balance}();
}

/**
* @dev Adds ETH balance to the account. This is meant to allow for ETH
* to be migrated from an old gateway to a new gateway
*/
function donateETH() external payable {}
}

0 comments on commit 2731b6c

Please sign in to comment.