GLMR Price: $0.020772 (-1.71%)

Contract

0xF6e48684f805C592b8286D5fa6157627D10B7a48

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Accrue Interest38002632023-06-17 12:49:24953 days ago1687006164IN
0xF6e48684...7D10B7a48
0 GLMR0.01536647126.68577538
Redeem Underlyin...32017252023-03-23 16:36:001039 days ago1679589360IN
0xF6e48684...7D10B7a48
0 GLMR0.0446972100
Redeem Underlyin...31756422023-03-19 23:13:301043 days ago1679267610IN
0xF6e48684...7D10B7a48
0 GLMR0.09352362101.5
Redeem Underlyin...31651242023-03-18 10:58:541044 days ago1679137134IN
0xF6e48684...7D10B7a48
0 GLMR0.0683764100
Redeem Underlyin...31646932023-03-18 9:29:541044 days ago1679131794IN
0xF6e48684...7D10B7a48
0 GLMR0.04916692110
Repay Borrow31613832023-03-17 22:12:481045 days ago1679091168IN
0xF6e48684...7D10B7a48
0 GLMR0.024773101.5
Mint31408462023-03-15 0:08:061048 days ago1678838886IN
0xF6e48684...7D10B7a48
0 GLMR0.04104436101.5
Mint31380122023-03-14 14:19:421048 days ago1678803582IN
0xF6e48684...7D10B7a48
0 GLMR0.040919100
Redeem Underlyin...31329982023-03-13 21:04:541049 days ago1678741494IN
0xF6e48684...7D10B7a48
0 GLMR0.04387284110
Mint31307312023-03-13 13:09:181049 days ago1678712958IN
0xF6e48684...7D10B7a48
0 GLMR0.040439100
Mint31257132023-03-12 6:22:461051 days ago1678602166IN
0xF6e48684...7D10B7a48
0 GLMR0.04985192101.5
Redeem Underlyin...31224522023-03-11 11:41:001051 days ago1678534860IN
0xF6e48684...7D10B7a48
0 GLMR0.04963079110
Mint31212312023-03-11 7:23:241051 days ago1678519404IN
0xF6e48684...7D10B7a48
0 GLMR0.0454065100
Redeem Underlyin...30958982023-03-07 16:30:301055 days ago1678206630IN
0xF6e48684...7D10B7a48
0 GLMR0.0412711100
Redeem Underlyin...30894792023-03-06 18:46:121056 days ago1678128372IN
0xF6e48684...7D10B7a48
0 GLMR0.0699881101.5
Repay Borrow30813072023-03-05 14:55:361057 days ago1678028136IN
0xF6e48684...7D10B7a48
0 GLMR0.02444485101.5
Repay Borrow30812782023-03-05 14:49:361057 days ago1678027776IN
0xF6e48684...7D10B7a48
0 GLMR0.02440912101.5
Repay Borrow30812542023-03-05 14:44:421057 days ago1678027482IN
0xF6e48684...7D10B7a48
0 GLMR0.02440912101.5
Repay Borrow30812502023-03-05 14:43:541057 days ago1678027434IN
0xF6e48684...7D10B7a48
0 GLMR0.02473727101.5
Repay Borrow30812292023-03-05 14:39:301057 days ago1678027170IN
0xF6e48684...7D10B7a48
0 GLMR0.02473727101.5
Repay Borrow30812202023-03-05 14:37:361057 days ago1678027056IN
0xF6e48684...7D10B7a48
0 GLMR0.02647292101.5
Redeem Underlyin...30806042023-03-05 12:30:181057 days ago1678019418IN
0xF6e48684...7D10B7a48
0 GLMR0.07123757101.5
Mint30793672023-03-05 8:12:061057 days ago1678003926IN
0xF6e48684...7D10B7a48
0 GLMR0.0491152100
Redeem Underlyin...30782002023-03-05 4:13:541058 days ago1677989634IN
0xF6e48684...7D10B7a48
0 GLMR0.06983007101.5
Repay Borrow30761512023-03-04 21:16:421058 days ago1677964602IN
0xF6e48684...7D10B7a48
0 GLMR0.02473727101.5
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
24454432022-12-05 15:22:541147 days ago1670253774  Contract Creation0 GLMR
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xa9736bA0...e0dcf4C72
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CErc20Delegator

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;

import "./ComptrollerInterface.sol";
import "./InterestRateModel.sol";
import "./CDelegateInterface.sol";

/**
 * @title Compound's CErc20Delegator Contract
 * @notice CTokens which wrap an EIP-20 underlying and delegate to an implementation
 * @author Compound
 */
contract CErc20Delegator is CDelegationStorage {
  /**
   * @notice Construct a new money market
   * @param underlying_ The address of the underlying asset
   * @param comptroller_ The address of the Comptroller
   * @param interestRateModel_ The address of the interest rate model
   * @param name_ ERC-20 name of this token
   * @param symbol_ ERC-20 symbol of this token
   * @param implementation_ The address of the implementation the contract delegates to
   * @param becomeImplementationData The encoded args for becomeImplementation
   */
  constructor(
    address underlying_,
    ComptrollerInterface comptroller_,
    address payable fuseAdmin_,
    InterestRateModel interestRateModel_,
    string memory name_,
    string memory symbol_,
    address implementation_,
    bytes memory becomeImplementationData,
    uint256 reserveFactorMantissa_,
    uint256 adminFeeMantissa_
  ) {
    // First delegate gets to initialize the delegator (i.e. storage contract)
    delegateTo(
      implementation_,
      abi.encodeWithSignature(
        "initialize(address,address,address,address,string,string,uint256,uint256)",
        underlying_,
        comptroller_,
        fuseAdmin_,
        interestRateModel_,
        name_,
        symbol_,
        reserveFactorMantissa_,
        adminFeeMantissa_
      )
    );

    // New implementations always get set via the settor (post-initialize)
    delegateTo(
      implementation_,
      abi.encodeWithSignature(
        "_setImplementationSafe(address,bool,bytes)",
        implementation_,
        false,
        becomeImplementationData
      )
    );
  }

  /**
   * @notice Internal method to delegate execution to another contract
   * @dev It returns to the external caller whatever the implementation returns or forwards reverts
   * @param callee The contract to delegatecall
   * @param data The raw data to delegatecall
   * @return The returned bytes from the delegatecall
   */
  function delegateTo(address callee, bytes memory data) internal returns (bytes memory) {
    (bool success, bytes memory returnData) = callee.delegatecall(data);
    assembly {
      if eq(success, 0) {
        revert(add(returnData, 0x20), returndatasize())
      }
    }
    return returnData;
  }

  /**
   * @notice Delegates execution to an implementation contract
   * @dev It returns to the external caller whatever the implementation returns or forwards reverts
   */
  receive() external payable {}

  fallback() external payable {
    // Cannot send value to CErc20Delegator
    require(msg.value == 0, "CErc20Delegator:fallback: cannot send value to fallback");

    // Check for automatic implementation
    delegateTo(implementation, abi.encodeWithSignature("_prepare()"));

    // delegate all other functions to current implementation
    (bool success, ) = implementation.delegatecall(msg.data);

    assembly {
      let free_mem_ptr := mload(0x40)
      returndatacopy(free_mem_ptr, 0, returndatasize())

      switch success
      case 0 {
        revert(free_mem_ptr, returndatasize())
      }
      default {
        return(free_mem_ptr, returndatasize())
      }
    }
  }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;

contract CDelegationStorage {
  /**
   * @notice Implementation address for this contract
   */
  address public implementation;
}

abstract contract CDelegateInterface is CDelegationStorage {
  /**
   * @notice Emitted when implementation is changed
   */
  event NewImplementation(address oldImplementation, address newImplementation);

  /**
   * @notice Called by the admin to update the implementation of the delegator
   * @param implementation_ The address of the new implementation for delegation
   * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation
   * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation
   */
  function _setImplementationSafe(
    address implementation_,
    bool allowResign,
    bytes calldata becomeImplementationData
  ) external virtual;

  /**
   * @notice Called by the delegator on a delegate to initialize it for duty
   * @dev Should revert if any issues arise which make it unfit for delegation
   * @param data The encoded bytes data for any initialization
   */
  function _becomeImplementation(bytes calldata data) public virtual;

  /**
   * @notice Function called before all delegator functions
   * @dev Checks comptroller.autoImplementation and upgrades the implementation if necessary
   */
  function _prepare() external payable virtual;

  function contractType() external virtual returns (string memory);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;

abstract contract ComptrollerInterface {
  /// @notice Indicator that this is a Comptroller contract (for inspection)
  bool public constant isComptroller = true;

  function getRewardsDistributors() external view virtual returns (address[] memory);

  function getMaxRedeemOrBorrow(
    address account,
    address cToken,
    bool isBorrow
  ) external virtual returns (uint256);

  /*** Assets You Are In ***/

  function enterMarkets(address[] calldata cTokens) external virtual returns (uint256[] memory);

  function exitMarket(address cToken) external virtual returns (uint256);

  /*** Policy Hooks ***/

  function mintAllowed(
    address cToken,
    address minter,
    uint256 mintAmount
  ) external virtual returns (uint256);

  function redeemAllowed(
    address cToken,
    address redeemer,
    uint256 redeemTokens
  ) external virtual returns (uint256);

  function redeemVerify(
    address cToken,
    address redeemer,
    uint256 redeemAmount,
    uint256 redeemTokens
  ) external virtual;

  function borrowAllowed(
    address cToken,
    address borrower,
    uint256 borrowAmount
  ) external virtual returns (uint256);

  function borrowWithinLimits(address cToken, uint256 accountBorrowsNew) external virtual returns (uint256);

  function repayBorrowAllowed(
    address cToken,
    address payer,
    address borrower,
    uint256 repayAmount
  ) external virtual returns (uint256);

  function liquidateBorrowAllowed(
    address cTokenBorrowed,
    address cTokenCollateral,
    address liquidator,
    address borrower,
    uint256 repayAmount
  ) external virtual returns (uint256);

  function seizeAllowed(
    address cTokenCollateral,
    address cTokenBorrowed,
    address liquidator,
    address borrower,
    uint256 seizeTokens
  ) external virtual returns (uint256);

  function transferAllowed(
    address cToken,
    address src,
    address dst,
    uint256 transferTokens
  ) external virtual returns (uint256);

  /*** Liquidity/Liquidation Calculations ***/

  function liquidateCalculateSeizeTokens(
    address cTokenBorrowed,
    address cTokenCollateral,
    uint256 repayAmount
  ) external view virtual returns (uint256, uint256);

  /*** Pool-Wide/Cross-Asset Reentrancy Prevention ***/

  function _beforeNonReentrant() external virtual;

  function _afterNonReentrant() external virtual;
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;

/**
 * @title Compound's InterestRateModel Interface
 * @author Compound
 */
abstract contract InterestRateModel {
  /// @notice Indicator that this is an InterestRateModel contract (for inspection)
  bool public constant isInterestRateModel = true;

  /**
   * @notice Calculates the current borrow interest rate per block
   * @param cash The total amount of cash the market has
   * @param borrows The total amount of borrows the market has outstanding
   * @param reserves The total amount of reserves the market has
   * @return The borrow rate per block (as a percentage, and scaled by 1e18)
   */
  function getBorrowRate(
    uint256 cash,
    uint256 borrows,
    uint256 reserves
  ) public view virtual returns (uint256);

  /**
   * @notice Calculates the current supply interest rate per block
   * @param cash The total amount of cash the market has
   * @param borrows The total amount of borrows the market has outstanding
   * @param reserves The total amount of reserves the market has
   * @param reserveFactorMantissa The current reserve factor the market has
   * @return The supply rate per block (as a percentage, and scaled by 1e18)
   */
  function getSupplyRate(
    uint256 cash,
    uint256 borrows,
    uint256 reserves,
    uint256 reserveFactorMantissa
  ) public view virtual returns (uint256);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"underlying_","type":"address"},{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"address payable","name":"fuseAdmin_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"},{"internalType":"uint256","name":"reserveFactorMantissa_","type":"uint256"},{"internalType":"uint256","name":"adminFeeMantissa_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x608060405234801561001057600080fd5b5060405161069638038061069683398101604081905261002f91610246565b610085848b8b8b8b8b8b8989604051602401610052989796959493929190610363565b60408051601f198184030181529190526020810180516001600160e01b039081166306db3ecd60e01b179091526100e316565b506100d384856000866040516024016100a0939291906103cc565b60408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b179091526100e316565b505050505050505050505061041d565b6060600080846001600160a01b0316846040516101009190610401565b600060405180830381855af49150503d806000811461013b576040519150601f19603f3d011682016040523d82523d6000602084013e610140565b606091505b50915091506000821415610155573d60208201fd5b949350505050565b80516001600160a01b038116811461017457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101aa578181015183820152602001610192565b838111156101b9576000848401525b50505050565b600082601f8301126101d057600080fd5b81516001600160401b03808211156101ea576101ea610179565b604051601f8301601f19908116603f0116810190828211818310171561021257610212610179565b8160405283815286602085880101111561022b57600080fd5b61023c84602083016020890161018f565b9695505050505050565b6000806000806000806000806000806101408b8d03121561026657600080fd5b61026f8b61015d565b995061027d60208c0161015d565b985061028b60408c0161015d565b975061029960608c0161015d565b60808c01519097506001600160401b03808211156102b657600080fd5b6102c28e838f016101bf565b975060a08d01519150808211156102d857600080fd5b6102e48e838f016101bf565b96506102f260c08e0161015d565b955060e08d015191508082111561030857600080fd5b506103158d828e016101bf565b9350506101008b015191506101208b015190509295989b9194979a5092959850565b6000815180845261034f81602086016020860161018f565b601f01601f19169290920160200192915050565b6001600160a01b0389811682528881166020830152878116604083015286166060820152610100608082018190526000906103a083820188610337565b905082810360a08401526103b48187610337565b60c0840195909552505060e001529695505050505050565b6001600160a01b038416815282151560208201526060604082018190526000906103f890830184610337565b95945050505050565b6000825161041381846020870161018f565b9190910192915050565b61026a8061042c6000396000f3fe6080604052600436106100225760003560e01c80635c60da1b1461015c57610029565b3661002957005b34156100a15760405162461bcd60e51b815260206004820152603760248201527f43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f7460448201527f2073656e642076616c756520746f2066616c6c6261636b000000000000000000606482015260840160405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b1790526100e0916001600160a01b031690610198565b50600080546040516001600160a01b03909116906101019083903690610212565b600060405180830381855af49150503d806000811461013c576040519150601f19603f3d011682016040523d82523d6000602084013e610141565b606091505b505090506040513d6000823e818015610158573d82f35b3d82fd5b34801561016857600080fd5b5060005461017c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6060600080846001600160a01b0316846040516101b59190610222565b600060405180830381855af49150503d80600081146101f0576040519150601f19603f3d011682016040523d82523d6000602084013e6101f5565b606091505b5091509150600082141561020a573d60208201fd5b949350505050565b8183823760009101908152919050565b6000825160005b818110156102435760208186018101518583015201610229565b81811115610252576000828501525b50919091019291505056fea164736f6c634300080a000a000000000000000000000000931715fee2d06333043d11f658c8ce934ac61d0c000000000000000000000000cc248e6106cb7b05293ef027d5c1c05bf3e39f2100000000000000000000000006ca643287642acbb008e5a050668c8e26ba081400000000000000000000000073fb229d73dc5ccc3dcef2f39fdea9ca2dca9e64000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000007d96ab3f6cf41257faeee127d62a06b41e9a1dc600000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000185374656c6c615377617020506f6f6c2055534420436f696e0000000000000000000000000000000000000000000000000000000000000000000000000000000a66555344432e77682d320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100225760003560e01c80635c60da1b1461015c57610029565b3661002957005b34156100a15760405162461bcd60e51b815260206004820152603760248201527f43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f7460448201527f2073656e642076616c756520746f2066616c6c6261636b000000000000000000606482015260840160405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b1790526100e0916001600160a01b031690610198565b50600080546040516001600160a01b03909116906101019083903690610212565b600060405180830381855af49150503d806000811461013c576040519150601f19603f3d011682016040523d82523d6000602084013e610141565b606091505b505090506040513d6000823e818015610158573d82f35b3d82fd5b34801561016857600080fd5b5060005461017c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6060600080846001600160a01b0316846040516101b59190610222565b600060405180830381855af49150503d80600081146101f0576040519150601f19603f3d011682016040523d82523d6000602084013e6101f5565b606091505b5091509150600082141561020a573d60208201fd5b949350505050565b8183823760009101908152919050565b6000825160005b818110156102435760208186018101518583015201610229565b81811115610252576000828501525b50919091019291505056fea164736f6c634300080a000a

Deployed Bytecode Sourcemap

331:3149:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;2881:9;:14;2873:82;;;;-1:-1:-1;;;2873:82:1;;216:2:4;2873:82:1;;;198:21:4;255:2;235:18;;;228:30;294:34;274:18;;;267:62;365:25;345:18;;;338:53;408:19;;2873:82:1;;;;;;;;3015:14;;3031:37;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3031:37:1;-1:-1:-1;;;3031:37:1;;;3004:65;;-1:-1:-1;;;;;3015:14:1;;3004:10;:65::i;:::-;-1:-1:-1;3139:12:1;3157:14;;:37;;-1:-1:-1;;;;;3157:14:1;;;;:37;;3139:12;;3185:8;;3157:37;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3138:56;;;3244:4;3238:11;3288:16;3285:1;3271:12;3256:49;3320:7;3334:63;;;;3443:16;3429:12;3422:38;3334:63;3372:16;3358:12;3351:38;163:29:0;;;;;;;;;;-1:-1:-1;163:29:0;;;;-1:-1:-1;;;;;163:29:0;;;;;;-1:-1:-1;;;;;878:32:4;;;860:51;;848:2;833:18;163:29:0;;;;;;;2284:299:1;2357:12;2378;2392:23;2419:6;-1:-1:-1;;;;;2419:19:1;2439:4;2419:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2377:67;;;;2482:1;2473:7;2470:14;2467:83;;;2525:16;2518:4;2506:10;2502:21;2495:47;2467:83;2568:10;2284:299;-1:-1:-1;;;;2284:299:1:o;438:271:4:-;621:6;613;608:3;595:33;577:3;647:16;;672:13;;;647:16;438:271;-1:-1:-1;438:271:4:o;922:426::-;1051:3;1089:6;1083:13;1114:1;1124:129;1138:6;1135:1;1132:13;1124:129;;;1236:4;1220:14;;;1216:25;;1210:32;1197:11;;;1190:53;1153:12;1124:129;;;1271:6;1268:1;1265:13;1262:48;;;1306:1;1297:6;1292:3;1288:16;1281:27;1262:48;-1:-1:-1;1326:16:4;;;;;922:426;-1:-1:-1;;922:426:4:o

Swarm Source

none://164736f6c634300080a000a

Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.