Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
KAIFeed
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
import {ISpotOracle} from "src/interfaces/core/spotOracles/ISpotOracle.sol";
contract KAIFeed is ISpotOracle {
/// @dev Hardcoding KAI price to 1 USD to act as soft peg, only intended to be used for internal Yari contracts
uint256 public constant PRICE = 1e18;
function fetchPrice() external pure returns (uint256) {
return PRICE;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
interface ISpotOracle {
function fetchPrice() external view returns (uint);
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin-upgradeable/contracts/=lib/openzeppelin-contracts-upgradeable/contracts/",
"solady/=lib/solady/src/",
"@solmate/=lib/solmate/src/",
"@chimera/=lib/chimera/src/",
"forge-std/=lib/forge-std/src/",
"@uniswap/v3-core/=lib/v3-core/",
"@uniswap/v3-periphery/=lib/v3-periphery/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"chimera/=lib/chimera/src/",
"ds-test/=lib/solmate/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"rewards/=lib/rewards/",
"solmate/=lib/solmate/src/",
"v3-core/=lib/v3-core/contracts/",
"v3-periphery/=lib/v3-periphery/contracts/"
],
"optimizer": {
"enabled": false,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
6080604052348015600e575f80fd5b5060e68061001b5f395ff3fe6080604052348015600e575f80fd5b50600436106030575f3560e01c80630fdb11cf1460345780638d859f3e14604e575b5f80fd5b603a6068565b604051604591906099565b60405180910390f35b60546077565b604051605f91906099565b60405180910390f35b5f670de0b6b3a7640000905090565b670de0b6b3a764000081565b5f819050919050565b6093816083565b82525050565b5f60208201905060aa5f830184608c565b9291505056fea2646970667358221220f541a1cb96a44f5febd859c82ab4b013f1e92037b8e2264f6836563368e25eb664736f6c634300081a0033
Deployed Bytecode
0x6080604052348015600e575f80fd5b50600436106030575f3560e01c80630fdb11cf1460345780638d859f3e14604e575b5f80fd5b603a6068565b604051604591906099565b60405180910390f35b60546077565b604051605f91906099565b60405180910390f35b5f670de0b6b3a7640000905090565b670de0b6b3a764000081565b5f819050919050565b6093816083565b82525050565b5f60208201905060aa5f830184608c565b9291505056fea2646970667358221220f541a1cb96a44f5febd859c82ab4b013f1e92037b8e2264f6836563368e25eb664736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.