-
Notifications
You must be signed in to change notification settings - Fork 0
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
Delegations are not added in allDelegations
array within the delegate()
function.
#67
Comments
|
@ilzheev thanks for your comment. According to the comment above the
|
Yeah, I meant both txs are submitted with 1 block difference (i.e. one by one), there is 0 chance that second tx won't be completed |
@ilzheev , sorry for the late response. The source code doesn't indicate anywhere that |
Github username: --
Twitter username: --
Submission hash (on-chain): 0x67a1843d023635cfbd956e01ed33eb2433a628427d6b8811ab73133332f9802b
Severity: low
Description:
Description
In the
stROSEMinter
contract delegations(StakingAddress) are added in theallDelegations
array only whentakeReceiptDelegate()
function is performed which should not be the expected behaviour. Delegations should be added withindelegate()
function instead and removed fromtakeReceiptDelegate()
function. In this way the list of all delegates(allDelegations
) will be accurate right after performing the functiondelegate()
.Impact
When
getAllDelegations()
function is performed beforetakeReceiptDelegate()
the list of all delegations will not be full and accurate. This will cause issues via missing info.Attachments
The
_addDelegation()
function should be moved whithindelegate()
function. This will lead to proper adding of delegates inallDelegates
array.The text was updated successfully, but these errors were encountered: