Skip to content
Verified contractPartialMIT

WarpVaultSC

Address0xae465fd39b519602ee28f062037f7b9c41fdc8cf
Balance

0 ETH

 

Transactions

284

 

Compiler

solc 0.6.6

 

Same code

2 more contracts

 

Details

Compiler
solc 0.6.6+commit.6c089d02
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
11,462,188
Creation transaction
0x2fdf89b057…7d1df73afb

Read27

  • InterestRate() → (address)
  • accountBorrows(address) → (uint256,uint256)
  • accrualBlockNumber() → (uint256)
  • borrowBalancePrior(address) → (uint256)
  • borrowIndex() → (uint256)
  • borrowRatePerBlock() → (uint256)
  • calculateFee(uint256) → (uint256)
  • divisor() → (uint256)
  • exchangeRatePrior() → (uint256)
  • getCash() → (uint256)
  • getCashPrior() → (uint256)
  • getSCAddress() → (address)
  • getSCDecimals() → (uint8)
  • historicalReward(address) → (uint256)
  • percent() → (uint256)
  • principalBalance(address) → (uint256)
  • reserveFactorMantissa() → (uint256)
  • stablecoin() → (address)
  • supplyRatePerBlock() → (uint256)
  • timeWizard() → (uint256)
  • totalBorrows() → (uint256)
  • totalReserves() → (uint256)
  • viewAccountBalance(address) → (uint256)
  • viewHistoricalReward(address) → (uint256)
  • wStableCoin() → (address)
  • warpControl() → (address)
  • warpTeam() → (address)

Write14

  • _borrow(uint256,address)
  • _repayLiquidatedLoan(address,address,uint256)
  • accrueInterest()
  • borrowBalanceCurrent(address) → (uint256)
  • exchangeRateCurrent() → (uint256)
  • lendToWarpVault(uint256)
  • redeem(uint256)
  • repayBorrow(uint256)
  • setNewInterestModel(address)
  • totalBorrowsCurrent() → (uint256)
  • updateReserve(uint256)
  • updateTeam(address)
  • updateWarpControl(address)
  • withdrawFees(uint256)

Events10

  • InterestAccrued(uint256,uint256,uint256,uint256)
  • InterestRateModelUpdate(address)
  • InterestShortCircuit(uint256)
  • LoanRepayed(address,uint256,uint256,uint256)
  • ReserveFactorUpdated(uint256)
  • ReserveWithdraw(uint256)
  • StableCoinLent(address,uint256,uint256)
  • StableCoinWithdraw(address,uint256,uint256)
  • WarpControlChanged(address,address)
  • WarpTeamChanged(address,address)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_InterestRate",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_StableCoin",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_warpControl",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_warpTeam",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_initialExchangeRate",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_timelock",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_reserveFactorMantissa",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "InterestAccrued",
    "type": "event",
    "inputs": [
      {
        "name": "accrualBlockNumber",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "borrowIndex",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalBorrows",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalReserves",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "InterestRateModelUpdate",
    "type": "event",
    "inputs": [
      {
        "name": "_newIRM",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "InterestShortCircuit",
    "type": "event",
    "inputs": [
      {
        "name": "_blockNumber",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "LoanRepayed",
    "type": "event",
    "inputs": [
      {
        "name": "_borrower",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_repayAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "remainingPrinciple",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "remainingInterest",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ReserveFactorUpdated",
    "type": "event",
    "inputs": [
      {
        "name": "_newRF",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ReserveWithdraw",
    "type": "event",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "StableCoinLent",
    "type": "event",
    "inputs": [
      {
        "name": "_lender",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_amountLent",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_amountOfWarpMinted",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "StableCoinWithdraw",
    "type": "event",
    "inputs": [
      {
        "name": "_lender",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_amountWithdrawn",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_amountOfWarpBurnt",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "WarpControlChanged",
    "type": "event",
    "inputs": [
      {
        "name": "_newControl",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_oldControl",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "WarpTeamChanged",
    "type": "event",
    "inputs": [
      {
        "name": "_newTeam",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_newControl",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "InterestRate",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract InterestRateModel"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "_borrow",
    "type": "function",
    "inputs": [
      {
        "name": "_borrowAmount",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_borrower",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "_repayLiquidatedLoan",
    "type": "function",
    "inputs": [
      {
        "name": "_borrower",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_liquidator",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "accountBorrows",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "principal",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "interestIndex",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "accrualBlockNumber",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "accrueInterest",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "borrowBalanceCurrent",
    "type": "function",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "borrowBalancePrior",
    "type": "function",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "borrowIndex",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "borrowRatePerBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "calculateFee",
    "type": "function",
    "inputs": [
      {
        "name": "_payedAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "divisor",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "exchangeRateCurrent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "exchangeRatePrior",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getCash",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getCashPrior",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getSCAddress",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getSCDecimals",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "uint8"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "historicalReward",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "lendToWarpVault",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "percent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "principalBalance",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "redeem",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "repayBorrow",
    "type": "function",
    "inputs": [
      {
        "name": "_repayAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "reserveFactorMantissa",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "setNewInterestModel",
    "type": "function",
    "inputs": [
      {
        "name": "_newModel",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "stablecoin",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ERC20"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "supplyRatePerBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "timeWizard",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "totalBorrows",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "totalBorrowsCurrent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "totalReserves",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "updateReserve",
    "type": "function",
    "inputs": [
      {
        "name": "_newReserveMantissa",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "updateTeam",
    "type": "function",
    "inputs": [
      {
        "name": "_team",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "updateWarpControl",
    "type": "function",
    "inputs": [
      {
        "name": "_warpControl",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "viewAccountBalance",
    "type": "function",
    "inputs": [
      {
        "name": "_account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "viewHistoricalReward",
    "type": "function",
    "inputs": [
      {
        "name": "_account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "wStableCoin",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract WarpWrapperToken"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "warpControl",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract WarpControlI"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "warpTeam",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "withdrawFees",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.