Verified contractPartial
Vault
Address0xe8baa363ef23986b730d9f79c85cbb5c19301f8d
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.4.23
- Same code
1 more contract
Details
- Compiler
- solc 0.4.23+commit.124ca40d
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,390,680
- Creation transaction
- 0xff965e4fdc…21dac7f654
Read40
- debtActualToRaw(uint256) → (uint256)
- debtScalePrevious() → (uint256)
- VAULT_B() → (bytes32)
- rawBalanceOf(address) → (uint256)
- PEG_LOGIC_ACTIONS() → (bytes32)
- vaultExists(address) → (bool)
- liquidationRatio() → (uint32)
- balanceScalingFactor() → (uint256)
- auctions(address) → (address)
- debtScaleTimestamp() → (uint256)
- collateralBorrowedRatio() → (uint256)
- oracleValue() → (uint256)
- balScaleRate() → (int256)
- ORACLE() → (bytes32)
- debtRawToActual(uint256) → (uint256)
- debtScaleRate() → (int256)
- getVaults() → (address[])
- VAULT_A() → (bytes32)
- STABLE_TOKEN() → (bytes32)
- amountMinted() → (uint256)
- registry() → (address)
- vaults(uint256) → (address)
- AUCTION_ACTIONS() → (bytes32)
- debtScalingFactor() → (uint256)
- borrowingEnabled() → (bool)
- rawDebt(address) → (uint256)
- PEG_SETTINGS() → (bytes32)
- balScaleTimestamp() → (uint256)
- balScalePrevious() → (uint256)
- biddingTime() → (uint256)
- rawTotalBalance() → (uint256)
- PEG_LOGIC() → (bytes32)
- totalBorrowed(address) → (uint256)
- balanceActualToRaw(uint256) → (uint256)
- rawTotalDebt() → (uint256)
- FEE_RECIPIENT() → (bytes32)
- maxBorrowLTV() → (uint32)
- COLLATERAL_TOKEN() → (bytes32)
- balanceRawToActual(uint256) → (uint256)
- PEGUSD_TOKEN() → (bytes32)
Write23
- setRawTotalBalance(uint256)
- emitAuctionEnded(address,address,uint256)
- emitRepay(address,uint256)
- setTotalBorrowed(address,uint256)
- emitDeposit(address,uint256)
- setRawTotalDebt(uint256)
- emitBorrow(address,uint256)
- setBiddingTime(uint256)
- setRawBalanceOf(address,uint256)
- emitAuctionStarted(address)
- emitLiquidate(address)
- transferERC20Token(address,address,uint256)
- create(address)
- setAuctionAddress(address,address)
- setAmountMinted(uint256)
- setDebtScalingRate(int256)
- setMaxBorrowLTV(uint32)
- setBalanceScalingRate(int256)
- setCollateralBorrowedRatio(uint256)
- setLiquidationRatio(uint32)
- setRawDebt(address,uint256)
- setBorrowingEnabled(bool)
- emitWithdraw(address,address,uint256)
Events14
- AmountMinted(uint256,uint256)
- Create(address)
- DebtScalingRateUpdate(int256,int256)
- BalanceScalingRateUpdate(int256,int256)
- CollateralBorrowedRatio(uint256,uint256)
- LiquidationRatioUpdate(int256,int256)
- MaxBorrowUpdate(uint32,uint32)
- Deposit(address,uint256)
- Liquidate(address)
- Borrow(address,uint256)
- Repay(address,uint256)
- Withdraw(address,address,uint256)
- AuctionStarted(address)
- AuctionEnded(address,address,uint256)
ABI as JSON
[
{
"name": "setRawTotalBalance",
"type": "function",
"inputs": [
{
"name": "_rawTotalBalance",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "debtActualToRaw",
"type": "function",
"inputs": [
{
"name": "_actual",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "emitAuctionEnded",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_highestBidder",
"type": "address"
},
{
"name": "_highestBid",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "debtScalePrevious",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "VAULT_B",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rawBalanceOf",
"type": "function",
"inputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "PEG_LOGIC_ACTIONS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "emitRepay",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "vaultExists",
"type": "function",
"inputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "liquidationRatio",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceScalingFactor",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "auctions",
"type": "function",
"inputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "debtScaleTimestamp",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "collateralBorrowedRatio",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setTotalBorrowed",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_totalBorrowed",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "emitDeposit",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "oracleValue",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balScaleRate",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "ORACLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setRawTotalDebt",
"type": "function",
"inputs": [
{
"name": "_rawTotalDebt",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "emitBorrow",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "debtRawToActual",
"type": "function",
"inputs": [
{
"name": "_raw",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setBiddingTime",
"type": "function",
"inputs": [
{
"name": "_biddingTime",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setRawBalanceOf",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_rawBalance",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "debtScaleRate",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getVaults",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "emitAuctionStarted",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "VAULT_A",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "STABLE_TOKEN",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "amountMinted",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "registry",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "emitLiquidate",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "vaults",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "transferERC20Token",
"type": "function",
"inputs": [
{
"name": "_token",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "AUCTION_ACTIONS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "debtScalingFactor",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "create",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "borrowingEnabled",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rawDebt",
"type": "function",
"inputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setAuctionAddress",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_auction",
"type": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "PEG_SETTINGS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setAmountMinted",
"type": "function",
"inputs": [
{
"name": "_amountMinted",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setDebtScalingRate",
"type": "function",
"inputs": [
{
"name": "_debtScalingRate",
"type": "int256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "balScaleTimestamp",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balScalePrevious",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setMaxBorrowLTV",
"type": "function",
"inputs": [
{
"name": "_maxBorrowLTV",
"type": "uint32"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setBalanceScalingRate",
"type": "function",
"inputs": [
{
"name": "_balanceScalingRate",
"type": "int256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "biddingTime",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setCollateralBorrowedRatio",
"type": "function",
"inputs": [
{
"name": "_newRatio",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "rawTotalBalance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "PEG_LOGIC",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "totalBorrowed",
"type": "function",
"inputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceActualToRaw",
"type": "function",
"inputs": [
{
"name": "_actual",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setLiquidationRatio",
"type": "function",
"inputs": [
{
"name": "_liquidationRatio",
"type": "uint32"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "rawTotalDebt",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "FEE_RECIPIENT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setRawDebt",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_rawDebt",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setBorrowingEnabled",
"type": "function",
"inputs": [
{
"name": "_enabled",
"type": "bool"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "emitWithdraw",
"type": "function",
"inputs": [
{
"name": "_borrower",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "maxBorrowLTV",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "COLLATERAL_TOKEN",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceRawToActual",
"type": "function",
"inputs": [
{
"name": "_raw",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "PEGUSD_TOKEN",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"type": "constructor",
"inputs": [
{
"name": "_registry",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable"
},
{
"name": "AmountMinted",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "uint256",
"indexed": false
},
{
"name": "_new",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Create",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"name": "DebtScalingRateUpdate",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "int256",
"indexed": false
},
{
"name": "_new",
"type": "int256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "BalanceScalingRateUpdate",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "int256",
"indexed": false
},
{
"name": "_new",
"type": "int256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "CollateralBorrowedRatio",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "uint256",
"indexed": false
},
{
"name": "_new",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "LiquidationRatioUpdate",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "int256",
"indexed": false
},
{
"name": "_new",
"type": "int256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "MaxBorrowUpdate",
"type": "event",
"inputs": [
{
"name": "_old",
"type": "uint32",
"indexed": false
},
{
"name": "_new",
"type": "uint32",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Deposit",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
},
{
"name": "_amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Liquidate",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"name": "Borrow",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
},
{
"name": "_amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Repay",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
},
{
"name": "_amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Withdraw",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
},
{
"name": "_to",
"type": "address",
"indexed": true
},
{
"name": "_amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "AuctionStarted",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"name": "AuctionEnded",
"type": "event",
"inputs": [
{
"name": "_borrower",
"type": "address",
"indexed": true
},
{
"name": "_highestBidder",
"type": "address",
"indexed": true
},
{
"name": "_highestBid",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.