Contract 0x1be4554bdec0a2ca45737604abf9c04e9e70b8cf

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x27e26c504187bc888a81a3b5b5c020546f74bdced0dcb1ff22366807247ed1e10x6080604070998492021-05-03 11:33:30173 days 27 mins agoPrivacySwap: Deployer IN  Contract Creation0 BNB0.00197923
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PrivacySwapLpTimeLock

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-05-03
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;




library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    if (a == 0) {
      return 0;
    }
    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return a / b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}









/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}






contract PrivacySwapLpTimeLock {
    using SafeMath for uint256;
    IERC20 public prvBNBLpInterFace;
    IERC20 public prvBUSDLpInterFace;

    address public owner;
    
    
    uint256 public TIME_TO_WITHDRAW;

    constructor(address _prvBNBLpInterFace,address _prvBUSDLpInterFace ,address ownerAddress) {
        
        prvBNBLpInterFace = IERC20(_prvBNBLpInterFace);
        prvBUSDLpInterFace = IERC20(_prvBUSDLpInterFace);
        
        
        
        owner = ownerAddress;
      
        TIME_TO_WITHDRAW = block.timestamp.add(182 days);
        

        
        
        
    }
    
    
    

    function checkPRVBUSDBalance() public view  returns(uint256){
        return prvBUSDLpInterFace.balanceOf(address(this));
    }



    function checkPRVBNBBalance() public view  returns(uint256){
        return prvBNBLpInterFace.balanceOf(address(this));
    }





    
    
    function withdrawPRVBNBLPs() public {
        require(msg.sender== owner,"You are not authotized");
        require(block.timestamp>TIME_TO_WITHDRAW,"Timelock has not been passed");
        prvBNBLpInterFace.transfer(owner,checkPRVBNBBalance());
    }



    function withdrawPRVBUSDLPs() public {
        require(msg.sender== owner,"You are not authotized");
        require(block.timestamp>TIME_TO_WITHDRAW,"Timelock has not been passed");
        prvBUSDLpInterFace.transfer(owner,checkPRVBUSDBalance());
    }





  
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_prvBNBLpInterFace","type":"address"},{"internalType":"address","name":"_prvBUSDLpInterFace","type":"address"},{"internalType":"address","name":"ownerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"TIME_TO_WITHDRAW","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPRVBNBBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPRVBUSDBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prvBNBLpInterFace","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prvBUSDLpInterFace","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawPRVBNBLPs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPRVBUSDLPs","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516105eb3803806105eb83398101604081905261002f916100df565b600080546001600160a01b03199081166001600160a01b0386811691909117909255600180548216858416179055600280549091169183169190911790556100854262eff100610091602090811b61032f17901c565b60035550610145915050565b600061009d8284610121565b9050828110156100bd57634e487b7160e01b600052600160045260246000fd5b92915050565b80516001600160a01b03811681146100da57600080fd5b919050565b6000806000606084860312156100f3578283fd5b6100fc846100c3565b925061010a602085016100c3565b9150610118604085016100c3565b90509250925092565b6000821982111561014057634e487b7160e01b81526011600452602481fd5b500190565b610497806101546000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100d257806399a699f0146100da5780639db54668146100e2578063bcb2a95a146100ea57610088565b806325ec626b1461008d57806332cff0df146100ab5780635c75075b146100b3578063889db01a146100c8575b600080fd5b6100956100f2565b6040516100a29190610434565b60405180910390f35b610095610178565b6100bb6101a9565b6040516100a291906103a0565b6100d06101b8565b005b6100bb61029f565b6100956102ae565b6100bb6102b4565b6100d06102c3565b600080546040516370a0823160e01b81526001600160a01b03909116906370a08231906101239030906004016103a0565b60206040518083038186803b15801561013b57600080fd5b505afa15801561014f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101739190610388565b905090565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906101239030906004016103a0565b6001546001600160a01b031681565b6002546001600160a01b031633146101eb5760405162461bcd60e51b81526004016101e290610404565b60405180910390fd5b600354421161020c5760405162461bcd60e51b81526004016101e2906103cd565b6001546002546001600160a01b039182169163a9059cbb911661022d610178565b6040518363ffffffff1660e01b815260040161024a9291906103b4565b602060405180830381600087803b15801561026457600080fd5b505af1158015610278573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029c9190610361565b50565b6002546001600160a01b031681565b60035481565b6000546001600160a01b031681565b6002546001600160a01b031633146102ed5760405162461bcd60e51b81526004016101e290610404565b600354421161030e5760405162461bcd60e51b81526004016101e2906103cd565b6000546002546001600160a01b039182169163a9059cbb911661022d6100f2565b600061033b828461043d565b90508281101561035b57634e487b7160e01b600052600160045260246000fd5b92915050565b600060208284031215610372578081fd5b81518015158114610381578182fd5b9392505050565b600060208284031215610399578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252601c908201527f54696d656c6f636b20686173206e6f74206265656e2070617373656400000000604082015260600190565b602080825260169082015275165bdd48185c99481b9bdd08185d5d1a1bdd1a5e995960521b604082015260600190565b90815260200190565b6000821982111561045c57634e487b7160e01b81526011600452602481fd5b50019056fea2646970667358221220032a86deb025708b34a79b1a34358c4d9b3639d4b146701e3fea482d4ed4672a64736f6c63430008010033000000000000000000000000cd18e1151a4831e5ebcecc611369123012674253000000000000000000000000ea275c14414de38f5c19c1e3559af032cc1facf4000000000000000000000000160a08acd577ccd70bd8d46ad7d6096a1437f765

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000cd18e1151a4831e5ebcecc611369123012674253000000000000000000000000ea275c14414de38f5c19c1e3559af032cc1facf4000000000000000000000000160a08acd577ccd70bd8d46ad7d6096a1437f765

-----Decoded View---------------
Arg [0] : _prvBNBLpInterFace (address): 0xcd18e1151a4831e5ebcecc611369123012674253
Arg [1] : _prvBUSDLpInterFace (address): 0xea275c14414de38f5c19c1e3559af032cc1facf4
Arg [2] : ownerAddress (address): 0x160a08acd577ccd70bd8d46ad7d6096a1437f765

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000cd18e1151a4831e5ebcecc611369123012674253
Arg [1] : 000000000000000000000000ea275c14414de38f5c19c1e3559af032cc1facf4
Arg [2] : 000000000000000000000000160a08acd577ccd70bd8d46ad7d6096a1437f765


Deployed ByteCode Sourcemap

3879:1487:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4669:127;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4528:129;;;:::i;3988:32::-;;;:::i;:::-;;;;;;;:::i;5091:258::-;;;:::i;:::-;;4029:20;;;:::i;4068:31::-;;;:::i;3950:::-;;;:::i;4824:255::-;;;:::i;4669:127::-;4720:7;4746:17;;:42;;-1:-1:-1;;;4746:42:0;;-1:-1:-1;;;;;4746:17:0;;;;:27;;:42;;4782:4;;4746:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4739:49;;4669:127;:::o;4528:129::-;4606:18;;:43;;-1:-1:-1;;;4606:43:0;;4580:7;;-1:-1:-1;;;;;4606:18:0;;:28;;:43;;4643:4;;4606:43;;;:::i;3988:32::-;;;-1:-1:-1;;;;;3988:32:0;;:::o;5091:258::-;5160:5;;-1:-1:-1;;;;;5160:5:0;5147:10;:18;5139:52;;;;-1:-1:-1;;;5139:52:0;;;;;;;:::i;:::-;;;;;;;;;5226:16;;5210:15;:32;5202:72;;;;-1:-1:-1;;;5202:72:0;;;;;;;:::i;:::-;5285:18;;5313:5;;-1:-1:-1;;;;;5285:18:0;;;;:27;;5313:5;5319:21;:19;:21::i;:::-;5285:56;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5091:258::o;4029:20::-;;;-1:-1:-1;;;;;4029:20:0;;:::o;4068:31::-;;;;:::o;3950:::-;;;-1:-1:-1;;;;;3950:31:0;;:::o;4824:255::-;4892:5;;-1:-1:-1;;;;;4892:5:0;4879:10;:18;4871:52;;;;-1:-1:-1;;;4871:52:0;;;;;;;:::i;:::-;4958:16;;4942:15;:32;4934:72;;;;-1:-1:-1;;;4934:72:0;;;;;;;:::i;:::-;5017:17;;5044:5;;-1:-1:-1;;;;;5017:17:0;;;;:26;;5044:5;5050:20;:18;:20::i;1006:127::-;1064:9;1086:5;1090:1;1086;:5;:::i;:::-;1082:9;;1110:1;1105;:6;;1098:14;;-1:-1:-1;;;1098:14:0;;;;;;;;;1006:127;;;;:::o;14:297:1:-;;134:2;122:9;113:7;109:23;105:32;102:2;;;155:6;147;140:22;102:2;192:9;186:16;245:5;238:13;231:21;224:5;221:32;211:2;;272:6;264;257:22;211:2;300:5;92:219;-1:-1:-1;;;92:219:1:o;316:194::-;;439:2;427:9;418:7;414:23;410:32;407:2;;;460:6;452;445:22;407:2;-1:-1:-1;488:16:1;;397:113;-1:-1:-1;397:113:1:o;515:203::-;-1:-1:-1;;;;;679:32:1;;;;661:51;;649:2;634:18;;616:102::o;723:274::-;-1:-1:-1;;;;;915:32:1;;;;897:51;;979:2;964:18;;957:34;885:2;870:18;;852:145::o;1224:352::-;1426:2;1408:21;;;1465:2;1445:18;;;1438:30;1504;1499:2;1484:18;;1477:58;1567:2;1552:18;;1398:178::o;1581:346::-;1783:2;1765:21;;;1822:2;1802:18;;;1795:30;-1:-1:-1;;;1856:2:1;1841:18;;1834:52;1918:2;1903:18;;1755:172::o;1932:177::-;2078:25;;;2066:2;2051:18;;2033:76::o;2114:229::-;;2185:1;2181:6;2178:1;2175:13;2172:2;;;-1:-1:-1;;;2211:33:1;;2267:4;2264:1;2257:15;2297:4;2218:3;2285:17;2172:2;-1:-1:-1;2328:9:1;;2162:181::o

Swarm Source

ipfs://032a86deb025708b34a79b1a34358c4d9b3639d4b146701e3fea482d4ed4672a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.