Skip to content

Instantly share code, notes, and snippets.

View Ro5s's full-sized avatar
💭
👨🏻‍🍲 Thinking lowkey pizza

Ross Campbell Ro5s

💭
👨🏻‍🍲 Thinking lowkey pizza
View GitHub Profile
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.2;
interface IFlashBorrower {
/// @notice The flashloan callback. `amount` + `fee` needs to repayed to msg.sender before this call returns.
/// @param sender The address of the invoker of this flashloan.
/// @param token The address of the token that is loaned.
/// @param amount of the `token` that is loaned.
/// @param fee The fee that needs to be paid on top for this loan. Needs to be the same as `token`.
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.2;
/**
* @dev Originally DeriswapV1Math
* @author Andre Cronje, LevX
*/
library MirinMath {
// computes square roots using the babylonian method
// optimizer: 4289999999
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.12;
// File @boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol@v1.2.0
// License-Identifier: MIT
/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.6;
pragma abicoder v2;
/// @notice Minimalist NFT minter.
contract MiniNFT {
uint256 public totalSupply;
string constant public name = "MiniNFT";
string constant public symbol "mNFT";
mapping(address => uint256) public balanceOf;
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmfF2RJRNVGHzoNCyysSsExZJFbfKfjfLSfzdbMT7XBJTv ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

  • I am ro5s on github.
  • I am ro5s (https://keybase.io/ro5s) on keybase.
  • I have a public key ASBKsoUmHRq5eg_dzZysnoy0buM7umCah660Kvze9jgZUQo

To claim this, I am signing this object: