Verified contractPartial
yVault
Address0x98b058b2cbacf5e99bc7012df757ea7cfebd35bc
- Balance
0 ETH
- Transactions
1,568
- Compiler
solc 0.5.17
- Same code
20 more contracts
Details
- Compiler
- solc 0.5.17+commit.d19bba13
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,638,697
- Creation transaction
- 0xe7c1d8e0ee…fd53c394ff
- Main copy (most transactions)
- 0x96ea6af7…9a31ced6
Read14
- allowance(address,address) → (uint256)
- available() → (uint256)
- balance() → (uint256)
- balanceOf(address) → (uint256)
- controller() → (address)
- decimals() → (uint8)
- getPricePerFullShare() → (uint256)
- governance() → (address)
- max() → (uint256)
- min() → (uint256)
- name() → (string)
- symbol() → (string)
- token() → (address)
- totalSupply() → (uint256)
Write15
- approve(address,uint256) → (bool)
- decreaseAllowance(address,uint256) → (bool)
- deposit(uint256)
- depositAll()
- earn()
- increaseAllowance(address,uint256) → (bool)
- setController(address)
- setGovernance(address)
- setMin(uint256)
- setName(string)
- setSymbol(string)
- transfer(address,uint256) → (bool)
- transferFrom(address,address,uint256) → (bool)
- withdraw(uint256)
- withdrawAll()
Events2
- Approval(address,address,uint256)
- Transfer(address,address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "address"
},
{
"name": "_controller",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"stateMutability": "nonpayable"
},
{
"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": "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": "allowance",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "approve",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "available",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "controller",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "decimals",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "decreaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "subtractedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "depositAll",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "earn",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "getPricePerFullShare",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "governance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "increaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "addedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "max",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "min",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "name",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "setController",
"type": "function",
"inputs": [
{
"name": "_controller",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setGovernance",
"type": "function",
"inputs": [
{
"name": "_governance",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setMin",
"type": "function",
"inputs": [
{
"name": "_min",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setName",
"type": "function",
"inputs": [
{
"name": "_name",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setSymbol",
"type": "function",
"inputs": [
{
"name": "_symbol",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "symbol",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "token",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "transfer",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "transferFrom",
"type": "function",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "_shares",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "withdrawAll",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.