Verified contractExactMIT
PolynomialFeeCalculator
Address0x24e170f9bcdfb4bbc532b341c069cd094b6ff5ce
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- Via IR
- yes
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,797,396
- Creation transaction
- 0x4074c6f099…62b929c95a
Read4
- COEFFICIENT_SCALE() → (int256)
- calculateFee(int256,bool) → (uint256)
- declineCoefficients() → (int256,int256,int256,int256,int256)
- pumpCoefficients() → (int256,int256,int256,int256,int256)
Errors1
- InvalidRValue()
ABI as JSON
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"name": "InvalidRValue",
"type": "error",
"inputs": []
},
{
"name": "COEFFICIENT_SCALE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256",
"internalType": "int256"
}
],
"stateMutability": "view"
},
{
"name": "calculateFee",
"type": "function",
"inputs": [
{
"name": "R",
"type": "int256",
"internalType": "int256"
},
{
"name": "flow",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
{
"name": "feeRateBps",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "declineCoefficients",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "a",
"type": "int256",
"internalType": "int256"
},
{
"name": "b",
"type": "int256",
"internalType": "int256"
},
{
"name": "c",
"type": "int256",
"internalType": "int256"
},
{
"name": "d",
"type": "int256",
"internalType": "int256"
},
{
"name": "e",
"type": "int256",
"internalType": "int256"
}
],
"stateMutability": "view"
},
{
"name": "pumpCoefficients",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "a",
"type": "int256",
"internalType": "int256"
},
{
"name": "b",
"type": "int256",
"internalType": "int256"
},
{
"name": "c",
"type": "int256",
"internalType": "int256"
},
{
"name": "d",
"type": "int256",
"internalType": "int256"
},
{
"name": "e",
"type": "int256",
"internalType": "int256"
}
],
"stateMutability": "view"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.