Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,15 @@ The Angle's Transmuter and savings smart contracts have been audited by Code4ren

The Parallelizer and savings contracts have been audited by:

- Bailsec in April/March 2025, find the final audit report
[here](./docs/audits/Bailsec%20-%20Parallel%20Protocol%20-%20V3%20Core%20-%20Final%20Report.pdf)
#### Bailsec

Bailsec in April/March 2025, find the final audit report
[here](./docs/audits/Bailsec%20-%20Parallel%20Protocol%20-%20V3%20Core%20-%20Final%20Report.pdf)

#### Certora

Certora by formal verification in April/March 2025, find the final audit report
[here](./docs/audits/Certora_Report_Parallel_Parallelizer_BridgeToken_final.pdf)

## Development

Expand Down
4 changes: 2 additions & 2 deletions contracts/parallelizer/facets/RewardHandler.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;

import { IRewardHandler } from "interfaces/IRewardHandler.sol";

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { IRewardHandler } from "interfaces/IRewardHandler.sol";

import { AccessManagedModifiers } from "./AccessManagedModifiers.sol";

import { LibDiamond } from "../libraries/LibDiamond.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/parallelizer/facets/Swapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ contract Swapper is ISwapper, AccessManagedModifiers {
if (amountIn > 0 && amountOut > 0) {
ParallelizerStorage storage ts = s.transmuterStorage();
if (mint) {
_checkHardCaps(collatInfo, amountOut, ts.normalizer);
uint128 changeAmount = (amountOut.mulDiv(BASE_27, ts.normalizer, Math.Rounding.Ceil)).toUint128();
// The amount of stablecoins issued from a collateral are not stored as absolute variables, but
// as variables normalized by a `normalizer`
collatInfo.normalizedStables = collatInfo.normalizedStables + uint216(changeAmount);
_checkHardCaps(collatInfo, 0, ts.normalizer);
ts.normalizedStables = ts.normalizedStables + changeAmount;
if (permitData.length > 0) {
PERMIT_2.functionCall(permitData);
Expand Down
Binary file not shown.
Binary file not shown.