-
bin2chen
high
# repayAccountPrimeDebtAtSettlement() user lost residual cash
## Summary
in `repayAccountPrimeDebtAtSettlement() `
Incorrect calculation of `primeCashRefund` value (always == 0)
Resu…
-
# Lines of code
https://github.com/code-423n4/2023-03-polynomial/blob/main/src/LiquidityPool.sol#L452
https://github.com/code-423n4/2023-03-polynomial/blob/main/src/LiquidityPool.sol#L484
https://git…
-
**Github username:** @0xRizwan
**Twitter username:** 0xRizwann
**Submission hash (on-chain):** 0x4a3ccd98ca0a903ed3a33296e1fc25a0689969201d2fcae12efb73956506a0f4
**Severity:** medium
**Description:*…
-
```solidity
contract A{
function f(int a, int b) public returns(int){
return a+b;
}
}
```
$ `slither test.sol --print slithir-ssa`
Function A.f(int256,int256)
Expression: a + b
IR…
-
hyh
medium
# Vault can lose rewards due to lack of precision
## Summary
Vault's storePriceAndRewards() can accrue no rewards as precision can be lost when price() has low decimals.
For example, p…
-
# Lines of code
https://github.com/code-423n4/2024-04-panoptic/blob/main/contracts/PanopticPool.sol#L1621-L1640
https://github.com/code-423n4/2024-04-panoptic/blob/main/contracts/CollateralTracker.so…
-
xiaoming90
high
# Code asymmetry of `globalPositions.marginDepositedTotal`
## Summary
Code asymmetry of `globalPositions.marginDepositedTotal` state variable could lead to an accounting error with…
-
# Handle
gpersoon
# Vulnerability details
## Impact
The function sortVaultsByDelta doesn't always work as expected.
Suppose all the delta's are positive, and delta1 >= delta2 >= delta3 > 0
Then ma…
-
### subject
decimal of `MAX_LEVERAGE` is treated differently in two different places
### description
```solidity
if (getIM) {
(, uint32 MAX_LEVERAGE) = ITierStorage(tierStorage).…
-
Hi,
If I have a contract with a function like:
```
{
"constant": true,
"inputs": [
{
"name": "a",
"type": "int256"
},
{
"name": "b",
…