Перейти к содержимому
Проверенный контрактТочноеBUSL-1.1

BurnMintTokenPool

Адрес0x17be5d735d49c84919d3cfdff9eabbdb12d6ac20
Баланс

0 ETH

 

Транзакций

5

 

Компилятор

solc 0.8.24

 

Тот же код

Только этот контракт

 

Подробности

Компилятор
solc 0.8.24+commit.e11b9ed9
Язык
solidity
Оптимизация
Да, 200 прогонов
Версия EVM
paris
Через IR
да
Лицензия
BUSL-1.1
Совпадение
Точноекод создания: да, код в сети: да
Проверен на Sourcify
Создан в блоке
22 920 608
Транзакция создания
0x98672879e2…89c09438b5

124 файла

Исходный код большой: показывается один файл. Выберите файл в списке.

@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPool.sol

// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.24;

import {ITypeAndVersion} from "@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol";
import {IBurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol";

import {BurnMintTokenPoolAbstract} from "./BurnMintTokenPoolAbstract.sol";
import {TokenPool} from "./TokenPool.sol";

/// @notice This pool mints and burns a 3rd-party token.
/// @dev Pool whitelisting mode is set in the constructor and cannot be modified later.
/// It either accepts any address as originalSender, or only accepts whitelisted originalSender.
/// The only way to change whitelisting mode is to deploy a new pool.
/// If that is expected, please make sure the token's burner/minter roles are adjustable.
/// @dev This contract is a variant of BurnMintTokenPool that uses `burn(amount)`.
contract BurnMintTokenPool is BurnMintTokenPoolAbstract, ITypeAndVersion {
  string public constant override typeAndVersion = "BurnMintTokenPool 1.5.1";

  constructor(
    IBurnMintERC20 token,
    uint8 localTokenDecimals,
    address[] memory allowlist,
    address rmnProxy,
    address router
  ) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router) {}

  /// @inheritdoc BurnMintTokenPoolAbstract
  function _burn(
    uint256 amount
  ) internal virtual override {
    IBurnMintERC20(address(i_token)).burn(amount);
  }
}
Настройки компилятораПоказать
{
  "viaIR": true,
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "details": {
      "yulDetails": {
        "optimizerSteps": "u"
      }
    },
    "enabled": true
  },
  "evmVersion": "paris"
}

Исходный код и метаданные: Sourcify.

Исходный код принадлежит авторам контракта.