-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix 'informational' issues (audit recommendations) #257
Comments
Hey team! Please add your planning poker estimate with Zenhub @b-yap @ebma @TorstenStueber |
EXC-01 - Missing information in logging message |
4FC-04 Logic should be moved to a separate function - refactoring -> #388 |
could not find the ff. in skyharbor.certik:
|
Oh right, that's weird. I also can't find them to be honest 😅 |
LI5-02 TryFrom CurrencyId implementations Contain Repeated Code |
#390 covers:
|
@ebma one of the concerns of 4FC-05 Commented out code are spacewalk/clients/vault/src/system.rs Lines 718 to 720 in ad68c16
and spacewalk/clients/vault/src/system.rs Line 660 in ad68c16
Do you know what to do here, or is a separate ticket needed to address this? |
4FC-05 Commented out code
|
The related ticket already exists. It's this one. I would keep the comments until we actually implemented the ticket about the faucets. If there is no other commented out code besides these, then there is nothing to do IMO. |
LIT-04 Reduce using unwrap() and expect() in Production Codebase
|
#393 covers:
|
GLOBAL-05 Unneceessary Off-Chain User Protection Mechanism
@ebma correct me if I'm wrong: the off-chain mechanism mentioned here is: spacewalk/pallets/vault-registry/src/lib.rs Line 780 in 5fc74e0
? |
@b-yap yes, I think it is. I'm curious however, because I think we cannot just remove that line. I think there is no other check for undercollateralized vaults. What I say in the quote about no need for theft reporting is irrelevant here, because
is not reporting for theft on Stellar, but it's reporting about undercollateralized vaults. @b-yap can you check whether the current implementation checks and punishes undercollateralized vaults in another place than the line you linked to? |
@b-yap pinging you again about the question before, before we close this ticket. |
@ebma |
Can you share a link to where it's being called? |
https://github.com/pendulum-chain/spacewalk/blob/5fc74e08ebdcf334529ee9fb73fd2c29bdc10f7a/pallets/vault-registry/src/lib.rs#L128C6-L151 |
I still think GLOBAL-05 is reported wrongly and they misunderstood some part of the logic. Referring to what they say in their comment, I think they misunderstand theft reporting as reporting undercollateralized vaults. Theft reporting was about reporting vaults that transfer the assets they hold somewhere else on Stellar. And we don't care about that. But undercollateralized vaults are still important for us. Thus, GLOBAL-05 is nothing we need to change. And since it's the last remaining issue of this ticket, we can close it. |
There are some very minor things brought up in the audit that we might want to fix. The following checklist only includes the item ID; the description and details can be found by looking at the audit report.
destination_adress
onsend_payment_to_address()
Result<>
Return Typeunwrap()
andexpect()
in Production Codebaseexecute_replace()
Since the changes are so minor, it's okay to include all of them in one branch and one Pull Request. But each of them should at least be addressed in a separate commit with a proper name, also mentioning the ID in the name so that it's easier to track the changes.
additional:
CurrencyId
implementations Contain Repeated Codefeed_values
FunctionThe text was updated successfully, but these errors were encountered: