Skip to content

Instantly share code, notes, and snippets.

View lychees's full-sized avatar
🌴
People, Fund, Strategy ...

minakokojima lychees

🌴
People, Fund, Strategy ...
View GitHub Profile
@lychees
lychees / dUSDT.sol
Created December 8, 2020 06:33
dUSDT.sol
/**
*Submitted for verification at BscScan.com on 2020-11-28
*/
/**
*Submitted for verification at BscScan.com on 2020-10-12
*/
// Dependency file: contracts/interfaces/IyToken.sol
/**
*Submitted for verification at Etherscan.io on 2020-12-05
*/
pragma solidity ^0.6.0;
// Dependency file: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
/**
*Submitted for verification at Etherscan.io on 2020-12-05
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6;
interface IminingPool {
function stake(uint) external;
/**
*Submitted for verification at BscScan.com on 2020-12-02
*/
/**
*Submitted for verification at BscScan.com on 2020-11-13
*/
pragma solidity ^0.6.0;
/**
*Submitted for verification at BscScan.com on 2020-11-28
*/
/**
*Submitted for verification at BscScan.com on 2020-10-12
*/
// Dependency file: contracts/interfaces/IyToken.sol
/**
*Submitted for verification at Etherscan.io on 2020-09-16
*/
/**
*Submitted for verification at Etherscan.io on 2020-09-15
*/
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
pragma solidity ^0.5.0;
contract DSMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, "ds-math-add-overflow");
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x, "ds-math-sub-underflow");
}
function mul(uint x, uint y) internal pure returns (uint z) {
00000000000000000000000012e2fcfa079fc23ae82ab82707b402410321103f0000000000000000000000003e40fbee56d2298c8762770917315d748f74cf97000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000002a30783030303030303030303030303030303030303030303030303030303030303030303030303030303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30783135334630376232636332613265336133464435354562343437394132326631643638303832324200000000000000000000000000000000000000000000
@lychees
lychees / Go
Created October 20, 2020 04:25
Pool...
// Dependency file: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
@lychees
lychees / yUniswap_ETH_USDT_LP.sol
Created September 18, 2020 11:43
yUniswap_ETH_USDT_LP.sol
// Dependency file: contracts/interfaces/IERC20.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {