-
Notifications
You must be signed in to change notification settings - Fork 1
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
pkqs90 - Discrepancy between spec and code: Vault admin cannot update tokensReceiver
.
#111
Comments
1 comment(s) were left on this issue during the judging contest. merlinboii commented:
|
tokensReceiver
.tokensReceiver
.
You've deleted an escalation for this issue. |
The protocol team fixed this issue in the following PRs/commits: |
pkqs90
Medium
Discrepancy between spec and code: Vault admin cannot update
tokensReceiver
.Summary
Vault admin cannot update
tokensReceiver
. However, the specs claim that admin should be able to update it.Vulnerability Detail
In the specs, we can see that the "Investment recipient address" is an address the admin can set and adjust.
However, the
tokensReceiver
variable can only be set during the initializer, and there is no set function for it. Note that all other variables listed in the spec has a setter function, except fortokensReceiver
.This is a discrepancy between code and specs where the admin does not have the ability to update the investment recipient address as expected.
Impact
tokensReceiver
after contract initialization.Code Snippet
Tool used
Manual Review
Recommendation
Create a setter function for
tokensReceiver
.The text was updated successfully, but these errors were encountered: