Commit fdc3006e authored by Conner Fromknecht's avatar Conner Fromknecht

feat: remove TeleportDeposit destory method

parent 9222ed10
...@@ -20,7 +20,6 @@ contract TeleportrDeposit { ...@@ -20,7 +20,6 @@ contract TeleportrDeposit {
event MaxBalanceSet(uint256 previousBalance, uint256 newBalance); event MaxBalanceSet(uint256 previousBalance, uint256 newBalance);
event BalanceWithdrawn(address indexed owner, uint256 balance); event BalanceWithdrawn(address indexed owner, uint256 balance);
event EtherReceived(address indexed emitter, uint256 amount); event EtherReceived(address indexed emitter, uint256 amount);
event Destructed(address indexed owner, uint256 amount);
// Modifiers // Modifiers
modifier isLowerThanMaxDepositAmount() { modifier isLowerThanMaxDepositAmount() {
...@@ -67,11 +66,6 @@ contract TeleportrDeposit { ...@@ -67,11 +66,6 @@ contract TeleportrDeposit {
payable(owner).transfer(_balance); payable(owner).transfer(_balance);
} }
function destroy() public isOwner {
emit Destructed(owner, address(this).balance);
selfdestruct(payable(owner));
}
// Setters // Setters
function setMaxAmount(uint256 _maxDepositAmount) external isOwner { function setMaxAmount(uint256 _maxDepositAmount) external isOwner {
emit MaxDepositAmountSet(maxDepositAmount, _maxDepositAmount); emit MaxDepositAmountSet(maxDepositAmount, _maxDepositAmount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment