Contract 0xf16a84b750390c9a83b243052dc8796755143fc5

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x89175e276eb200adc5f628d0d90415f54fffb21dfd05e58a24b1b2897ee811a7Transfer199588072021-10-24 13:26:30521 days 16 hrs ago0xa00911ac6cbdd77424d8cde9308fe0efaf04fb25 IN  0xf16a84b750390c9a83b243052dc8796755143fc50.01 FTM0.0033021471
0x205fdc15e3cce8930274d10c911798cbfe41e351b7009feda83eacaa4adaf2b20x60806040177109722021-09-26 6:27:03549 days 23 hrs agoCoffin Finance: Deployer IN  Create: MementoPolicy0 FTM0.109699153528
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x205fdc15e3cce8930274d10c911798cbfe41e351b7009feda83eacaa4adaf2b2177109722021-09-26 6:27:03549 days 23 hrs ago Coffin Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MementoPolicy

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 3 : MementoPolicy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
pragma experimental ABIEncoderV2;
import './Base64.sol';
import './IMementoDataCore.sol';


interface IMementoPolicy  {
    function getPrice(uint256 tokenId) external pure  returns ( uint256 );
}
contract MementoPolicy is IMementoPolicy{

    function getPrice(uint256 _tokenId) public pure override returns ( uint256 ){
        if (_tokenId<=100) {
            return 0;
        } else if (_tokenId<=300) {
            return 1e18;
        } else if (_tokenId<=500) {
            return 5e18;
        } else if (_tokenId<=1000) {
            return 10e18;
        } else if (_tokenId<=1500) {
            return 15e18;
        } else if (_tokenId<=2000) {
            return 30e18;
        } else if (_tokenId<=2500) {
            return 5e18;
        } else if (_tokenId<=3000) {
            return 8e18;
        } else if (_tokenId<=3500) {
            return 10e18;
        } else if (_tokenId<=4000) {
            return 20e18;
        } else if (_tokenId<=4500) {
            return 30e18;
        } else if (_tokenId<=5000) {
            return 50e18;
        } else if (_tokenId<=5500) {
            return 100e18;
        } else if (_tokenId<=6000) {
            return 150e18;
        } else if (_tokenId<=6500) {
            return 200e18;
        } else if (_tokenId<=7000) {
            return 300e18;
        } 
        return 500e18;
    }


}

File 2 of 3 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

/// [MIT License]
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 3 of 3 : IMementoDataCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
pragma experimental ABIEncoderV2;
import './Base64.sol';

interface IMementoDataCore{
    struct Memento {
        string message;
        uint256 minted_at;
        address minted_by;
        uint256 updated_at;
        address updated_by;
        mapping(address=>bool) recipients;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b5061020d806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e757223014610030575b600080fd5b61004361003e3660046101e7565b610055565b60405190815260200160405180910390f35b60006064821161006757506000919050565b61012c821161007f5750670de0b6b3a7640000919050565b6101f482116100975750674563918244f40000919050565b6103e882116100af5750678ac7230489e80000919050565b6105dc82116100c7575067d02ab486cedc0000919050565b6107d082116100e057506801a055690d9db80000919050565b6109c482116100f85750674563918244f40000919050565b610bb882116101105750676f05b59d3b200000919050565b610dac82116101285750678ac7230489e80000919050565b610fa0821161014157506801158e460913d00000919050565b611194821161015a57506801a055690d9db80000919050565b611388821161017357506802b5e3af16b1880000919050565b61157c821161018c575068056bc75e2d63100000919050565b61177082116101a55750680821ab0d4414980000919050565b61196482116101be5750680ad78ebc5ac6200000919050565b611b5882116101d75750681043561a8829300000919050565b50681b1ae4d6e2ef500000919050565b6000602082840312156101f957600080fd5b503591905056fea164736f6c6343000807000a

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.