GLMR Price: $0.020748 (-1.59%)

Contract

0x2245F6cf9A78200cCB92598a6eb202bD5878d569

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Accrue Interest38002572023-06-17 12:48:12953 days ago1687006092IN
0x2245F6cf...D5878d569
0 GLMR0.01433312125
Redeem Underlyin...36521562023-05-27 13:22:36974 days ago1685193756IN
0x2245F6cf...D5878d569
0 GLMR0.15716942140.12503467
Mint31787442023-03-20 9:45:061042 days ago1679305506IN
0x2245F6cf...D5878d569
0 GLMR0.03808696101.5
Mint30709452023-03-04 3:39:481059 days ago1677901188IN
0x2245F6cf...D5878d569
0 GLMR0.0323517100
Redeem Underlyin...30709162023-03-04 3:33:481059 days ago1677900828IN
0x2245F6cf...D5878d569
0 GLMR0.0508951100
Mint29830282023-02-19 15:06:241071 days ago1676819184IN
0x2245F6cf...D5878d569
0 GLMR0.0237861100
Mint28329672023-01-29 8:32:541092 days ago1674981174IN
0x2245F6cf...D5878d569
0 GLMR0.0254925100
Mint28051862023-01-25 10:22:241096 days ago1674642144IN
0x2245F6cf...D5878d569
0 GLMR0.0254925100
Redeem Underlyin...26743982023-01-06 23:49:121115 days ago1673048952IN
0x2245F6cf...D5878d569
0 GLMR0.06437018101.5
Repay Borrow26740652023-01-06 22:41:301115 days ago1673044890IN
0x2245F6cf...D5878d569
0 GLMR0.02061008101.5
Borrow26739432023-01-06 22:17:001115 days ago1673043420IN
0x2245F6cf...D5878d569
0 GLMR0.05703538101.5
Repay Borrow26737872023-01-06 21:45:301115 days ago1673041530IN
0x2245F6cf...D5878d569
0 GLMR0.02096787101.5
Redeem Underlyin...26732352023-01-06 19:54:241115 days ago1673034864IN
0x2245F6cf...D5878d569
0 GLMR0.0626323101.5
Repay Borrow26704562023-01-06 10:24:061115 days ago1673000646IN
0x2245F6cf...D5878d569
0 GLMR0.02093823101.5
Repay Borrow26704092023-01-06 10:14:301115 days ago1673000070IN
0x2245F6cf...D5878d569
0 GLMR0.02267144101.5
Redeem Underlyin...26667712023-01-05 21:53:361116 days ago1672955616IN
0x2245F6cf...D5878d569
0 GLMR0.08612914101.5
Borrow26649902023-01-05 15:51:181116 days ago1672933878IN
0x2245F6cf...D5878d569
0 GLMR0.05866243101.5
Mint26636512023-01-05 11:18:301116 days ago1672917510IN
0x2245F6cf...D5878d569
0 GLMR0.02421972101.5
Mint26634122023-01-05 10:29:181116 days ago1672914558IN
0x2245F6cf...D5878d569
0 GLMR0.02687953101.5
_set Interest Ra...26245432022-12-30 22:55:541122 days ago1672440954IN
0x2245F6cf...D5878d569
0 GLMR0.0132035100
Redeem Underlyin...26102752022-12-28 22:23:061124 days ago1672266186IN
0x2245F6cf...D5878d569
0 GLMR0.05923641101.5
Mint26102532022-12-28 22:18:421124 days ago1672265922IN
0x2245F6cf...D5878d569
0 GLMR0.02720271101.5
Redeem Underlyin...26088782022-12-28 17:39:061124 days ago1672249146IN
0x2245F6cf...D5878d569
0 GLMR0.03764391101.5
Mint26088462022-12-28 17:32:301124 days ago1672248750IN
0x2245F6cf...D5878d569
0 GLMR0.02755907101.5

Latest 1 internal transaction

Parent Transaction Hash Block From To
25736312022-12-23 18:15:541129 days ago1671819354  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"}]

0x608060405234801561001057600080fd5b5060405161069638038061069683398101604081905261002f91610246565b610085848b8b8b8b8b8b8989604051602401610052989796959493929190610363565b60408051601f198184030181529190526020810180516001600160e01b039081166306db3ecd60e01b179091526100e316565b506100d384856000866040516024016100a0939291906103cc565b60408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b179091526100e316565b505050505050505050505061041d565b6060600080846001600160a01b0316846040516101009190610401565b600060405180830381855af49150503d806000811461013b576040519150601f19603f3d011682016040523d82523d6000602084013e610140565b606091505b50915091506000821415610155573d60208201fd5b949350505050565b80516001600160a01b038116811461017457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101aa578181015183820152602001610192565b838111156101b9576000848401525b50505050565b600082601f8301126101d057600080fd5b81516001600160401b03808211156101ea576101ea610179565b604051601f8301601f19908116603f0116810190828211818310171561021257610212610179565b8160405283815286602085880101111561022b57600080fd5b61023c84602083016020890161018f565b9695505050505050565b6000806000806000806000806000806101408b8d03121561026657600080fd5b61026f8b61015d565b995061027d60208c0161015d565b985061028b60408c0161015d565b975061029960608c0161015d565b60808c01519097506001600160401b03808211156102b657600080fd5b6102c28e838f016101bf565b975060a08d01519150808211156102d857600080fd5b6102e48e838f016101bf565b96506102f260c08e0161015d565b955060e08d015191508082111561030857600080fd5b506103158d828e016101bf565b9350506101008b015191506101208b015190509295989b9194979a5092959850565b6000815180845261034f81602086016020860161018f565b601f01601f19169290920160200192915050565b6001600160a01b0389811682528881166020830152878116604083015286166060820152610100608082018190526000906103a083820188610337565b905082810360a08401526103b48187610337565b60c0840195909552505060e001529695505050505050565b6001600160a01b038416815282151560208201526060604082018190526000906103f890830184610337565b95945050505050565b6000825161041381846020870161018f565b9190910192915050565b61026a8061042c6000396000f3fe6080604052600436106100225760003560e01c80635c60da1b1461015c57610029565b3661002957005b34156100a15760405162461bcd60e51b815260206004820152603760248201527f43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f7460448201527f2073656e642076616c756520746f2066616c6c6261636b000000000000000000606482015260840160405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b1790526100e0916001600160a01b031690610198565b50600080546040516001600160a01b03909116906101019083903690610212565b600060405180830381855af49150503d806000811461013c576040519150601f19603f3d011682016040523d82523d6000602084013e610141565b606091505b505090506040513d6000823e818015610158573d82f35b3d82fd5b34801561016857600080fd5b5060005461017c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6060600080846001600160a01b0316846040516101b59190610222565b600060405180830381855af49150503d80600081146101f0576040519150601f19603f3d011682016040523d82523d6000602084013e6101f5565b606091505b5091509150600082141561020a573d60208201fd5b949350505050565b8183823760009101908152919050565b6000825160005b818110156102435760208186018101518583015201610229565b81811115610252576000828501525b50919091019291505056fea164736f6c634300080a000a000000000000000000000000acc15dc74880c9944775448304b263d191c6077f000000000000000000000000cc248e6106cb7b05293ef027d5c1c05bf3e39f2100000000000000000000000006ca643287642acbb008e5a050668c8e26ba081400000000000000000000000073fb229d73dc5ccc3dcef2f39fdea9ca2dca9e64000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000007820c66d4301eb4123df4923ceed58a387762fe800000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c5374656c6c615377617020506f6f6c205772617070656420474c4d520000000000000000000000000000000000000000000000000000000000000000000000086657474c4d522d3200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000

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.