-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1977f9
commit bac7ea3
Showing
417 changed files
with
55,823 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
contracts/mutants/ETHForwarderMock/1/CCD/ETHForwarderMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-FileCopyrightText: 2021 Lido <[email protected]> | ||
|
||
//SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract ETHForwarderMock { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
contracts/mutants/ETHForwarderMock/1/PKD/ETHForwarderMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-FileCopyrightText: 2021 Lido <[email protected]> | ||
|
||
//SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract ETHForwarderMock { | ||
constructor(address payable _target) { | ||
selfdestruct(_target); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
contracts/mutants/ETHForwarderMock/1/SFD/ETHForwarderMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-FileCopyrightText: 2021 Lido <[email protected]> | ||
|
||
//SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract ETHForwarderMock { | ||
constructor(address payable _target) payable { | ||
/* selfdestruct(_target); */ | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
contracts/mutants/ETHForwarderMock/1/SFI/ETHForwarderMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-FileCopyrightText: 2021 Lido <[email protected]> | ||
|
||
//SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract ETHForwarderMock { | ||
constructor(address payable _target) payable { selfdestruct(_target); | ||
selfdestruct(_target); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
contracts/mutants/ETHForwarderMock/original/ETHForwarderMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-FileCopyrightText: 2021 Lido <[email protected]> | ||
|
||
//SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract ETHForwarderMock { | ||
constructor(address payable _target) payable { | ||
selfdestruct(_target); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity 0.5.14; | ||
|
||
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | ||
// import "../config/Constant.sol"; | ||
|
||
interface mockERC20InterfaceFIN{ | ||
function balanceOf(address owner) external view returns (uint); | ||
} | ||
|
||
contract ETHPerFIN { | ||
using SafeMath for uint256; | ||
|
||
// Constant public constants; | ||
|
||
address public FIN = 0x054f76beED60AB6dBEb23502178C52d6C5dEbE40; | ||
address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; | ||
address public uniswap = 0x486792bcdb13F8aaCf85288D98850FA2804F95c7; | ||
|
||
function latestAnswer() public view returns (int256){ | ||
uint balance0 = mockERC20InterfaceFIN(FIN).balanceOf(uniswap); // 383328811522809054672340 | ||
uint balance1 = mockERC20InterfaceFIN(WETH).balanceOf(uniswap); // 646683755097326209560 | ||
return int(balance1.mul(10 + 18).div(balance0)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"number_of_changes": 1, | ||
"timing": 0.28908348083496094, | ||
"diff_chunks": [ | ||
[ | ||
{ | ||
"lhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 35, | ||
"end": 37, | ||
"content": "**", | ||
"highlight": "keyword" | ||
} | ||
] | ||
}, | ||
"rhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 35, | ||
"end": 36, | ||
"content": "+", | ||
"highlight": "keyword" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity 0.5.14; | ||
|
||
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | ||
// import "../config/Constant.sol"; | ||
|
||
interface mockERC20InterfaceFIN{ | ||
function balanceOf(address owner) external view returns (uint); | ||
} | ||
|
||
contract ETHPerFIN { | ||
using SafeMath for uint256; | ||
|
||
// Constant public constants; | ||
|
||
address public FIN = 0x054f76beED60AB6dBEb23502178C52d6C5dEbE40; | ||
address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; | ||
address public uniswap = 0x486792bcdb13F8aaCf85288D98850FA2804F95c7; | ||
|
||
function latestAnswer() public view returns (int256){ | ||
uint balance0 = mockERC20InterfaceFIN(FIN).balanceOf(uniswap); // 383328811522809054672340 | ||
uint balance1 = mockERC20InterfaceFIN(WETH).balanceOf(uniswap); // 646683755097326209560 | ||
return int8(balance1.mul(10 ** 18).div(balance0)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"number_of_changes": 1, | ||
"timing": 0.42432308197021484, | ||
"diff_chunks": [ | ||
[ | ||
{ | ||
"lhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 15, | ||
"end": 18, | ||
"content": "int", | ||
"highlight": "normal" | ||
} | ||
] | ||
}, | ||
"rhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 15, | ||
"end": 19, | ||
"content": "int8", | ||
"highlight": "normal" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity 0.5.14; | ||
|
||
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | ||
// import "../config/Constant.sol"; | ||
|
||
interface mockERC20InterfaceFIN{ | ||
function balanceOf(address owner) external view returns (uint); | ||
} | ||
|
||
contract ETHPerFIN { | ||
using SafeMath for uint256; | ||
|
||
// Constant public constants; | ||
|
||
address public FIN = 0x054f76beED60AB6dBEb23502178C52d6C5dEbE40; | ||
address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; | ||
address public uniswap = 0x486792bcdb13F8aaCf85288D98850FA2804F95c7; | ||
|
||
function latestAnswer() external view returns (int256){ | ||
uint balance0 = mockERC20InterfaceFIN(FIN).balanceOf(uniswap); // 383328811522809054672340 | ||
uint balance1 = mockERC20InterfaceFIN(WETH).balanceOf(uniswap); // 646683755097326209560 | ||
return int(balance1.mul(10 ** 18).div(balance0)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"number_of_changes": 1, | ||
"timing": 0.2598593235015869, | ||
"diff_chunks": [ | ||
[ | ||
{ | ||
"lhs": { | ||
"line_number": 18, | ||
"changes": [ | ||
{ | ||
"start": 28, | ||
"end": 34, | ||
"content": "public", | ||
"highlight": "keyword" | ||
} | ||
] | ||
}, | ||
"rhs": { | ||
"line_number": 18, | ||
"changes": [ | ||
{ | ||
"start": 28, | ||
"end": 36, | ||
"content": "external", | ||
"highlight": "keyword" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity 0.5.14; | ||
|
||
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | ||
// import "../config/Constant.sol"; | ||
|
||
interface mockERC20InterfaceFIN{ | ||
function balanceOf(address owner) external view returns (uint); | ||
} | ||
|
||
contract ETHPerFIN { | ||
using SafeMath for uint256; | ||
|
||
// Constant public constants; | ||
|
||
address public FIN = 0x054f76beED60AB6dBEb23502178C52d6C5dEbE40; | ||
address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; | ||
address public uniswap = 0x486792bcdb13F8aaCf85288D98850FA2804F95c7; | ||
|
||
function latestAnswer() public view returns (int256){ | ||
uint balance0 = mockERC20InterfaceFIN(FIN).balanceOf(uniswap); // 383328811522809054672340 | ||
uint balance1 = mockERC20InterfaceFIN(WETH).balanceOf(uniswap); // 646683755097326209560 | ||
return int(balance1.mul(9 ** 18).div(balance0)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"number_of_changes": 1, | ||
"timing": 0.15599799156188965, | ||
"diff_chunks": [ | ||
[ | ||
{ | ||
"lhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 32, | ||
"end": 34, | ||
"content": "10", | ||
"highlight": "normal" | ||
} | ||
] | ||
}, | ||
"rhs": { | ||
"line_number": 21, | ||
"changes": [ | ||
{ | ||
"start": 32, | ||
"end": 33, | ||
"content": "9", | ||
"highlight": "normal" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity 0.5.14; | ||
|
||
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | ||
// import "../config/Constant.sol"; | ||
|
||
interface mockERC20InterfaceFIN{ | ||
function balanceOf(address owner) external view returns (uint); | ||
} | ||
|
||
contract ETHPerFIN { | ||
using SafeMath for uint256; | ||
|
||
// Constant public constants; | ||
|
||
address public FIN = 0x054f76beED60AB6dBEb23502178C52d6C5dEbE40; | ||
address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; | ||
address public uniswap = 0x486792bcdb13F8aaCf85288D98850FA2804F95c7; | ||
|
||
function latestAnswer() public view returns (int256){ | ||
uint balance0 = mockERC20InterfaceFIN(FIN).balanceOf(uniswap); // 383328811522809054672340 | ||
uint balance1 = mockERC20InterfaceFIN(WETH).balanceOf(uniswap); // 646683755097326209560 | ||
/* return int(balance1.mul(10 ** 18).div(balance0)); */ | ||
} | ||
} |
Oops, something went wrong.