Skip to content
Verified contractExactGPL-2.0-or-later

DToken

Address0x93f71ddffebe8256b4fa6faefbdbfc3af88aacd2
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.24

 

Same code

441 more contracts

 

Details

Compiler
solc 0.8.24+commit.e11b9ed9
Language
solidity
Optimization
Yes, 20,000 runs
EVM version
cancun
License
GPL-2.0-or-later
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
21,426,579
Creation transaction
0x3c45f363fb…211d6c2df2
Main copy (most transactions)
0x6200860b…db2b175a

Read11

  • allowance(address,address) → (uint256)
  • approve(address,uint256) → (bool)
  • asset() → (address)
  • balanceOf(address) → (uint256)
  • decimals() → (uint8)
  • eVault() → (address)
  • name() → (string)
  • symbol() → (string)
  • totalSupply() → (uint256)
  • transfer(address,uint256) → (bool)
  • transferFrom(address,address,uint256) → (bool)

Write1

  • emitTransfer(address,address,uint256)

Events14

  • Approval(address,address,uint256)
  • BalanceForwarderStatus(address,bool)
  • Borrow(address,uint256)
  • ConvertFees(address,address,address,uint256,uint256)
  • DebtSocialized(address,uint256)
  • Deposit(address,address,uint256,uint256)
  • EVaultCreated(address,address,address)
  • InterestAccrued(address,uint256)
  • Liquidate(address,address,address,uint256,uint256)
  • PullDebt(address,address,uint256)
  • Repay(address,uint256)
  • Transfer(address,address,uint256)
  • VaultStatus(uint256,uint256,uint256,uint256,uint256,uint256,uint256)
  • Withdraw(address,address,address,uint256,uint256)

Errors49

  • E_AccountLiquidity()
  • E_AmountTooLargeToEncode()
  • E_BadAddress()
  • E_BadAssetReceiver()
  • E_BadBorrowCap()
  • E_BadCollateral()
  • E_BadFee()
  • E_BadMaxLiquidationDiscount()
  • E_BadSharesOwner()
  • E_BadSharesReceiver()
  • E_BadSupplyCap()
  • E_BorrowCapExceeded()
  • E_CheckUnauthorized()
  • E_CollateralDisabled()
  • E_ConfigAmountTooLargeToEncode()
  • E_ControllerDisabled()
  • E_DebtAmountTooLargeToEncode()
  • E_EmptyError()
  • E_ExcessiveRepayAmount()
  • E_FlashLoanNotRepaid()
  • E_Initialized()
  • E_InsufficientAllowance()
  • E_InsufficientAssets()
  • E_InsufficientBalance()
  • E_InsufficientCash()
  • E_InsufficientDebt()
  • E_InvalidLTVAsset()
  • E_LTVBorrow()
  • E_LTVLiquidation()
  • E_LiquidationCoolOff()
  • E_MinYield()
  • E_NoLiability()
  • E_NoPriceOracle()
  • E_NotController()
  • E_NotHookTarget()
  • E_NotSupported()
  • E_OperationDisabled()
  • E_OutstandingDebt()
  • E_ProxyMetadata()
  • E_Reentrancy()
  • E_RepayTooMuch()
  • E_SelfLiquidation()
  • E_SelfTransfer()
  • E_SupplyCapExceeded()
  • E_TransientState()
  • E_Unauthorized()
  • E_ViolatorLiquidityDeferred()
  • E_ZeroAssets()
  • E_ZeroShares()

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "E_AccountLiquidity",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_AmountTooLargeToEncode",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadAddress",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadAssetReceiver",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadBorrowCap",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadCollateral",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadFee",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadMaxLiquidationDiscount",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadSharesOwner",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadSharesReceiver",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BadSupplyCap",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_BorrowCapExceeded",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_CheckUnauthorized",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_CollateralDisabled",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ConfigAmountTooLargeToEncode",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ControllerDisabled",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_DebtAmountTooLargeToEncode",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_EmptyError",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ExcessiveRepayAmount",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_FlashLoanNotRepaid",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_Initialized",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InsufficientAllowance",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InsufficientAssets",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InsufficientBalance",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InsufficientCash",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InsufficientDebt",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_InvalidLTVAsset",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_LTVBorrow",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_LTVLiquidation",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_LiquidationCoolOff",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_MinYield",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_NoLiability",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_NoPriceOracle",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_NotController",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_NotHookTarget",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_NotSupported",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_OperationDisabled",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_OutstandingDebt",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ProxyMetadata",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_Reentrancy",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_RepayTooMuch",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_SelfLiquidation",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_SelfTransfer",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_SupplyCapExceeded",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_TransientState",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_Unauthorized",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ViolatorLiquidityDeferred",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ZeroAssets",
    "type": "error",
    "inputs": []
  },
  {
    "name": "E_ZeroShares",
    "type": "error",
    "inputs": []
  },
  {
    "name": "Approval",
    "type": "event",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "spender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "value",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BalanceForwarderStatus",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "status",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Borrow",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ConvertFees",
    "type": "event",
    "inputs": [
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "protocolReceiver",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "governorReceiver",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "protocolShares",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "governorShares",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "DebtSocialized",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Deposit",
    "type": "event",
    "inputs": [
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "owner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "shares",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "EVaultCreated",
    "type": "event",
    "inputs": [
      {
        "name": "creator",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "asset",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "dToken",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "InterestAccrued",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Liquidate",
    "type": "event",
    "inputs": [
      {
        "name": "liquidator",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "violator",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "collateral",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "repayAssets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "yieldBalance",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "PullDebt",
    "type": "event",
    "inputs": [
      {
        "name": "from",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "to",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Repay",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Transfer",
    "type": "event",
    "inputs": [
      {
        "name": "from",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "to",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "value",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "VaultStatus",
    "type": "event",
    "inputs": [
      {
        "name": "totalShares",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalBorrows",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "accumulatedFees",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "cash",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "interestAccumulator",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "interestRate",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Withdraw",
    "type": "event",
    "inputs": [
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "receiver",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "owner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "assets",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "shares",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "allowance",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "name": "approve",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "name": "asset",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "balanceOf",
    "type": "function",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "decimals",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "uint8"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "eVault",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "emitTransfer",
    "type": "function",
    "inputs": [
      {
        "name": "from",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "to",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "value",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "name",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "symbol",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "totalSupply",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "transfer",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "name": "transferFrom",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.