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 / dUSDx.sol
Created December 9, 2020 12:41
dUSDx.sol
/**
*Submitted for verification at BscScan.com on 2020-12-05
*/
/**
*Submitted for verification at BscScan.com on 2020-11-28
*/
/**
*Submitted for verification at BscScan.com on 2020-10-12
/**
*Submitted for verification at BscScan.com on 2020-12-07
*/
/**
*Submitted for verification at BscScan.com on 2020-11-08
*/
/**
*Submitted for verification at Etherscan.io on 2020-08-13
@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