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
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Ownership | |
* check Ownership of nfts | |
*/ | |
interface deployedContract { | |
function totalSupply() external view returns (uint); | |
function ownerOf(uint tokenId)external view returns (address); |
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
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Ownership | |
* check Ownership of nfts | |
*/ | |
interface deployedContract { | |
function totalSupply() external view returns (uint); | |
function ownerOf(uint tokenId)external view returns (address); |
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
pragma solidity >=0.7.0 <0.9.0; | |
// SPDX-License-Identifier: MIT | |
/** | |
* @title Ownership | |
* check Ownership of nfts | |
*/ | |
interface deployedContract { | |
function totalSupply() external view returns (uint); | |
function ownerOf(uint tokenId)external view returns (address); |
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
pragma solidity >=0.7.0 <0.9.0; | |
import "./interfaces/IZombieToken.sol"; | |
// SPDX-License-Identifier: MIT | |
/** | |
* @title RugZombieAuthenticator | |
* @author Saad Sarwar | |
*/ |
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
pragma solidity >=0.7.0 <0.9.0; | |
import "./access/Ownable.sol"; | |
import "./token/BEP20/IBEP20.sol"; | |
// SPDX-License-Identifier: MIT | |
/** | |
* @title RugSwap | |
* @author Saad Sarwar | |
*/ |
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
pragma solidity >=0.7.0 <0.9.0; | |
import "./access/Ownable.sol"; | |
import "./token/BEP20/IBEP20.sol"; | |
// SPDX-License-Identifier: MIT | |
/** | |
* @title RugSwap | |
* @author Saad Sarwar | |
*/ |
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
pragma solidity ^0.8.4; | |
// ZombieToken interface. | |
interface IZombieToken { | |
// function mint(address _to, uint256 _amount) external; | |
// function delegates(address delegator) external view returns (address); | |
// function delegate(address delegatee) external; | |
// function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) external; | |
// function transferOwnership(address newOwner) external; | |
// function getCurrentVotes(address account) external view returns (uint256); |
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
pragma solidity >=0.7.0 <0.9.0; | |
// import "./token/BEP20/IBEP20.sol"; | |
// SPDX-License-Identifier: MIT | |
/** | |
* @title RugZombieAuthenticator | |
* @author Saad Sarwar | |
*/ |
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
pragma solidity ^0.8.4; | |
// ZombieToken interface. | |
interface IZombieToken { | |
function balanceOf(address account) external view returns (uint256); | |
function transfer(address recipient, uint256 amount) external returns (bool); | |
function allowance(address _owner, address spender) external view returns (uint256); | |
function approve(address spender, uint256 amount) external returns (bool); | |
function transferFrom( | |
address sender, |
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
// SPDX-License-Identifier: GPLv3 | |
pragma solidity ^0.8.12; | |
library SafeMath { | |
function add(uint256 a, uint256 b) internal pure returns (uint256) { | |
uint256 c = a + b; | |
require(c >= a, 'SafeMath: addition overflow'); | |
OlderNewer