Skip to content

Instantly share code, notes, and snippets.

View cakoyo's full-sized avatar
🌴
On vacation

cakoyo

🌴
On vacation
View GitHub Profile
@cakoyo
cakoyo / Lending.sol
Created October 16, 2020 18:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson_v0.5.10+commit.a1d534e.js&optimize=true&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.10;
import "./SafeMath.sol";
import "./Library.sol";
import "./OracleJustswap.sol";
contract Lending is Ownable {
using SafeMath for uint256;

Keybase proof

I hereby claim:

  • I am cakoyo on github.
  • I am cakoyo (https://keybase.io/cakoyo) on keybase.
  • I have a public key whose fingerprint is 0421 4C88 0AE5 ACD6 77D8 6031 FAE2 A647 7632 B8A5

To claim this, I am signing this object:

@cakoyo
cakoyo / swarm.md
Last active May 5, 2021 09:16
Swarm 配置

Swarm 配置参考

官方似乎没有给出要求的配置信息,本文根据实际节点运行给出可行的配置。

硬盘

  • 建议不少于 40G

在 Windows 上的一个实例,数据文件夹大小为 27.2 GB

在 Ubuntu 上的四个实例, 数据文件夹大小在 22 GB34 GB 之间

pragma solidity ^0.8.12;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function totalSupply() external view returns (uint256);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);