Skip to content

Instantly share code, notes, and snippets.

View gorbunovperm's full-sized avatar

Aleksandr Gorbunov gorbunovperm

View GitHub Profile
@gorbunovperm
gorbunovperm / erc7417.sol
Created October 15, 2024 08:49
Files for erc7417 audit
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.8.19;
library Address {
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
@gorbunovperm
gorbunovperm / erc7417_audit.md
Last active November 17, 2024 12:55
Audit report of "ERC-7417 Reference Implementation"
@gorbunovperm
gorbunovperm / Dex223_token_and_upgrade_audit.md
Last active November 4, 2024 05:12
Dex223 Token and Upgrade contract audit report

Dex223 Token and Upgrade contract audit report

Summary

This is the report from a security audit performed on Dex223 Token and Dex223_Upgrader by Aleksandr Gorbunov.

The token is implemented in the ERC-223 standard. It also has functions for backward compatibility with the ERC-20 standard.

The migration contract changes the tokens of the old version to the tokens of the new version.

@gorbunovperm
gorbunovperm / Sparkle.sol
Created February 24, 2019 04:20 — forked from yuriy77k/Sparkle.sol
Sparkle
pragma solidity 0.4.25;
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
@gorbunovperm
gorbunovperm / BasicToken.sol
Created November 23, 2018 04:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.22;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
@gorbunovperm
gorbunovperm / easyinvestup.sol
Last active November 2, 2018 11:44 — forked from yuriy77k/easyinvestup.sol
easyinvestup
pragma solidity ^0.4.24;
/***********************************************************
* Easy Investment UP Contract
* - GAIN 4.5% PER 24 HOURS (every 5900 blocks) 60 days
* - GAIN 5% PER 24 HOURS (every 5900 blocks) 40 days
* - GAIN 5.3% PER 24 HOURS (every 5900 blocks) 30 days
* - GAIN 6.5% PER 24 HOURS (every 5900 blocks) 20 days
* - GAIN 9.3% PER 24 HOURS (every 5900 blocks) 12 days
*

Template contracts security report

Summary

This is the report from a security audit performed on by gorbunovperm.

It is Template contracts.

In scope

pragma solidity ^0.4.20;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
@gorbunovperm
gorbunovperm / ETC_multisig_wallet_audit_report.md
Created July 1, 2018 04:55 — forked from Dexaran/ETC_multisig_wallet_audit_report.md
Ethereum CLassic multisig wallet audit report.

Ethereum Classic Multisig Wallet audit report.

Summary

This is the report from a security audit performed on Ethereum Classic Multisig Wallet by Dexaran. This contracts are a version of OpenZeppelin Multisig Wallet.

The audit focused primarily on the security of funds and fault tolerance of the multisig wallet. The main intention of this multisig wallet is to serve as an official storage of funds donated for ETC development.

In scope