This function is callable only from one address. Therefore, the system depends heavily on this address. In this case, there are scenarios that may lead to undesirable consequences for investors, e.g. if the private key of this address becomes compromised.
</p>
<p>
Vulnerability type by SmartDec classification: <ahref="https://github.com/smartdec/classification#trust">
function withdrawAll(uint _price) public onlyOwner {
myAddr.transfer(this.balance);
}
function setAll() public {
require(msg.sender == myAddr);
myAddr.transfer(this.balance);
}
function setMy(uint _price) public {
myAddr.transfer(this.balance);
}
function setNew() public returns() {
require(msg.sender == myAddr);
}
}
```
### Abstract Syntax Tree
[Click Here](https://astexplorer.net/#/gist/d25232dcf117416cf3b4073090b7ff69/cf2aa37413e1d739b99f21855c241b7e39773c46) to view the AST for the above code. Code generated from AST Explorer using _solidity-parser-antlr-0.4.11_