Skip to content
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(contracts): minor token related changes #4580

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aroralanuk
Copy link
Contributor

@aroralanuk aroralanuk commented Sep 26, 2024

Description

Minor token related changes like adding custom hook to 4626 collateral, checking for ERC20 as valid contract in HypERC20Collateral, etc.

Drive-by changes

check for overflow in bytes32ToAddress

Related issues

Backward compatibility

Yes

Testing

Unit tests

Copy link

changeset-bot bot commented Sep 26, 2024

⚠️ No Changeset found

Latest commit: 33f316a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.80%. Comparing base (9f5a17b) to head (33f316a).
Report is 3 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (9f5a17b) and HEAD (33f316a). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (9f5a17b) HEAD (33f316a)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4580      +/-   ##
==========================================
- Coverage   82.33%   73.80%   -8.54%     
==========================================
  Files         100      100              
  Lines        1421     1424       +3     
  Branches      180      182       +2     
==========================================
- Hits         1170     1051     -119     
- Misses        251      352     +101     
- Partials        0       21      +21     
Components Coverage Δ
core 84.61% <ø> (-12.31%) ⬇️
hooks 75.71% <ø> (-10.96%) ⬇️
isms 79.20% <ø> (-14.61%) ⬇️
token 87.66% <50.00%> (-5.81%) ⬇️
middlewares 77.39% <ø> (-9.14%) ⬇️

);
}

function testRemoteTransfer_rebaseWithCustomHook() public {

Check failure

Code scanning / Olympix Integrated Security

Modifying state after making an external call may allow for reentrancy attacks. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/reentrancy Critical test

Modifying state after making an external call may allow for reentrancy attacks. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/reentrancy
);
}

function testRemoteTransfer_rebaseWithCustomHook() public {

Check notice

Code scanning / Olympix Integrated Security

Reentrant functions which emit events after making an external call may lead to out-of-order events. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/reentrancy-events Low test

Reentrant functions which emit events after making an external call may lead to out-of-order events. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/reentrancy-events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants