-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: fix core contracts storage check #973
feat: fix core contracts storage check #973
Conversation
…ition and price feed setup
…ng limits with fuzzing
…r price manipulation tests
…on and update invariant
…d mintUbiquityDollars
b2c1983
to
f768506
Compare
this looks very ugly because of rebase, i'll do better |
uint256 _value, | ||
bytes calldata _data | ||
) external onlyOwner returns (bool, bytes memory) { | ||
(bool success, bytes memory result) = _to.call{value: _value}(_data); |
Check failure
Code scanning / Semgrep OSS
Semgrep Finding: rules.solidity.security.arbitrary-low-level-call Error
int256 collateralAmount_i256 = int256(collateralAmount); | ||
|
||
// Update the collateral balances | ||
collateralBorrowedBalances[msg.sender] -= collateralAmount_i256; |
Check notice
Code scanning / Semgrep OSS
Semgrep Finding: rules.solidity.security.basic-arithmetic-underflow Note
|
||
// Update the collateral balances | ||
collateralBorrowedBalances[msg.sender] -= collateralAmount_i256; | ||
collateralTotalBorrowedBalance -= collateralAmount_i256; |
Check notice
Code scanning / Semgrep OSS
Semgrep Finding: rules.solidity.security.basic-arithmetic-underflow Note
Resolves #972