fluid-contracts-public/deployments/arbitrum/RevenueResolver.json

474 lines
155 KiB
JSON
Raw Normal View History

{
"address": "0xFe4affaD55c7AeC012346195654634F7C786fA2c",
"abi": [
{
"inputs": [
{
"internalType": "contract IFluidLiquidity",
"name": "liquidity_",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "errorId_",
"type": "uint256"
}
],
"name": "FluidCalcsSimulatedTimeError",
"type": "error"
},
{
"inputs": [],
"name": "FluidCalcsSimulatedTimeInvalidTimestamp",
"type": "error"
},
{
"inputs": [],
"name": "FluidCalcsVaultSimulatedTimeError",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "errorId_",
"type": "uint256"
}
],
"name": "FluidLiquidityCalcsError",
"type": "error"
},
{
"inputs": [],
"name": "LIQUIDITY",
"outputs": [
{
"internalType": "contract IFluidLiquidity",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "exchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "simulatedTimestamp_",
"type": "uint256"
}
],
"name": "calcLiquidityExchangePricesSimulatedTime",
"outputs": [
{
"internalType": "uint256",
"name": "supplyExchangePrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowExchangePrice_",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "totalAmounts_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "exchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "simulatedTimestamp_",
"type": "uint256"
}
],
"name": "calcLiquidityTotalAmountsSimulatedTime",
"outputs": [
{
"internalType": "uint256",
"name": "totalSupply_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalBorrow_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supplyExchangePrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowExchangePrice_",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "userSupplyData_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "userBorrowData_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquiditySupplyExchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidityBorrowExchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "simulatedTimestamp_",
"type": "uint256"
}
],
"name": "calcLiquidityUserAmountsSimulatedTime",
"outputs": [
{
"internalType": "uint256",
"name": "supply_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrow_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supplyExchangePrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowExchangePrice_",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "totalAmounts_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "exchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidityTokenBalance_",
"type": "uint256"
}
],
"name": "calcRevenue",
"outputs": [
{
"internalType": "uint256",
"name": "revenueAmount_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "totalAmounts_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "exchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidityTokenBalance_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "simulatedTimestamp_",
"type": "uint256"
}
],
"name": "calcRevenueSimulatedTime",
"outputs": [
{
"internalType": "uint256",
"name": "revenueAmount_",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vaultVariables2_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vaultRates_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquiditySupplyExchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidityBorrowExchangePricesAndConfig_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "simulatedTimestamp_",
"type": "uint256"
}
],
"name": "calcVaultExchangePricesSimulatedTime",
"outputs": [
{
"internalType": "uint256",
"name": "liqSupplyExPrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liqBorrowExPrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vaultSupplyExPrice_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vaultBorrowExPrice_",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token_",
"type": "address"
}
],
"name": "getRevenue",
"outputs": [
{
"internalType": "uint256",
"name": "revenueAmount_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRevenueCollector",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRevenues",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "revenueAmount",
"type": "uint256"
}
],
"internalType": "struct FluidRevenueResolver.TokenRevenue[]",
"name": "tokenRevenues_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
}
],
"transactionHash": "0x0d99cdfa27ccf2b10a3bf7b4719e351a42b7bcaeda1121dbfcdf91939c97eba1",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0x0Ed35B1609Ec45c7079E80d11149a52717e4859A",
"contractAddress": null,
"transactionIndex": 1,
"gasUsed": "1851169",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xd3822bb6ad6c3a3bb5db162510148500f34aff3036853a860b1fe2e9e53a2094",
"transactionHash": "0x0d99cdfa27ccf2b10a3bf7b4719e351a42b7bcaeda1121dbfcdf91939c97eba1",
"logs": [],
"blockNumber": 228011436,
"cumulativeGasUsed": "1851169",
"status": 1,
"byzantium": true
},
"args": [
"0x52Aa899454998Be5b000Ad077a46Bbe360F4e497"
],
"numDeployments": 2,
"solcInputHash": "7ea6a03437971b2bd8979b983d3f0850",
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IFluidLiquidity\",\"name\":\"liquidity_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"errorId_\",\"type\":\"uint256\"}],\"name\":\"FluidCalcsSimulatedTimeError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FluidCalcsSimulatedTimeInvalidTimestamp\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FluidCalcsVaultSimulatedTimeError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"errorId_\",\"type\":\"uint256\"}],\"name\":\"FluidLiquidityCalcsError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LIQUIDITY\",\"outputs\":[{\"internalType\":\"contract IFluidLiquidity\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"exchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"simulatedTimestamp_\",\"type\":\"uint256\"}],\"name\":\"calcLiquidityExchangePricesSimulatedTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"supplyExchangePrice_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowExchangePrice_\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"totalAmounts_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"simulatedTimestamp_\",\"type\":\"uint256\"}],\"name\":\"calcLiquidityTotalAmountsSimulatedTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalSupply_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBorrow_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyExchangePrice_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowExchangePrice_\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"userSupplyData_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"userBorrowData_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquiditySupplyExchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityBorrowExchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"simulatedTimestamp_\",\"type\":\"uint256\"}],\"name\":\"calcLiquidityUserAmountsSimulatedTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"supply_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrow_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyExchangePrice_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowExchangePrice_\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"totalAmounts_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityTokenBalance_\",\"type\":\"uint256\"}],\"name\":\"calcRevenue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"revenueAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"totalAmounts_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exchangePricesAndConfig_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityTokenBalance_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"simulatedTimestamp_\",\"type\":\"uint256\"}],\"name\":\"calcRevenueSimulatedTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"revenueAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"vaultVariables2_\",\
"bytecode": "0x60a060405234801561001057600080fd5b5060405161152238038061152283398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516114676100bb6000396000818160ee015281816102a20152818161044c01528181610573015281816105ed0152818161062a01528181610719015261084f01526114676000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c806380f971cc11610076578063ab8921751161005b578063ab892175146101be578063f3bd3c89146101d3578063f7fdd139146101e657600080fd5b806380f971cc1461018357806385b67095146101ab57600080fd5b8063318a5b80116100a7578063318a5b801461013557806334a2e659146101685780636bc6f5801461017057600080fd5b80631170e219146100c35780632861c7d1146100e9575b600080fd5b6100d66100d1366004611156565b6101f9565b6040519081526020015b60405180910390f35b6101107f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e0565b610148610143366004611156565b610220565b6040805194855260208501939093529183015260608201526080016100e0565b610110610270565b61014861017e366004611182565b610327565b6101966101913660046111bd565b61041b565b604080519283526020830191909152016100e0565b6100d66101b93660046111df565b610447565b6101c66106e4565b6040516100e09190611215565b6101486101e1366004611182565b6109a4565b6100d66101f436600461127a565b6109ea565b60008260000361020b57506000610219565b610216848484610a13565b90505b9392505050565b6000806000808560000361023f57506000925082915081905080610267565b6102498686610a7c565b90925090506102588783610cd6565b93506102648782610d21565b92505b93509350935093565b6040517fb5c736e4000000000000000000000000000000000000000000000000000000008152600060048201819052907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b5c736e490602401602060405180830381865afa1580156102fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032291906112ac565b905090565b6000808080861580610337575085155b1561034d5750600092508291508190508061040f565b6103578786610a7c565b5091506103648686610a7c565b91505088156103bb576001808a16811490610394908b901c67ffffffffffffffff16600860ff9082901c91161b90565b945080156103b95764e8d4a510006103ac84876112f4565b6103b6919061133a565b94505b505b871561040f5760018089168114906103e8908a901c67ffffffffffffffff16600860ff9082901c91161b90565b9350801561040d5764e8d4a5100061040083866112f4565b61040a919061133a565b93505b505b95509550955095915050565b6000808360000361043157506000905080610440565b61043b8484610a7c565b915091505b9250929050565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b5c736e4610491600586610d5b565b6040518263ffffffff1660e01b81526004016104af91815260200190565b602060405180830381865afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f091906112ac565b9050806000036105035750600092915050565b600073ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105eb576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301528516906370a0823190602401602060405180830381865afa1580156105c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e691906112ac565b610624565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16315b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b5c736e461066f600788610d5b565b6040518263ffffffff1660e01b815260040161068d91815260200190565b602060405180830381865afa1580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce91906112ac565b90506106db818484610a13565b95945050505050565b6040517fb5c736e4000000000000000000000000000000000000000000000000000000008152600a60048201526060906000907f000000000000000000000000000000000000000000000000000000000000000073ffff
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100be5760003560e01c806380f971cc11610076578063ab8921751161005b578063ab892175146101be578063f3bd3c89146101d3578063f7fdd139146101e657600080fd5b806380f971cc1461018357806385b67095146101ab57600080fd5b8063318a5b80116100a7578063318a5b801461013557806334a2e659146101685780636bc6f5801461017057600080fd5b80631170e219146100c35780632861c7d1146100e9575b600080fd5b6100d66100d1366004611156565b6101f9565b6040519081526020015b60405180910390f35b6101107f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e0565b610148610143366004611156565b610220565b6040805194855260208501939093529183015260608201526080016100e0565b610110610270565b61014861017e366004611182565b610327565b6101966101913660046111bd565b61041b565b604080519283526020830191909152016100e0565b6100d66101b93660046111df565b610447565b6101c66106e4565b6040516100e09190611215565b6101486101e1366004611182565b6109a4565b6100d66101f436600461127a565b6109ea565b60008260000361020b57506000610219565b610216848484610a13565b90505b9392505050565b6000806000808560000361023f57506000925082915081905080610267565b6102498686610a7c565b90925090506102588783610cd6565b93506102648782610d21565b92505b93509350935093565b6040517fb5c736e4000000000000000000000000000000000000000000000000000000008152600060048201819052907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b5c736e490602401602060405180830381865afa1580156102fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032291906112ac565b905090565b6000808080861580610337575085155b1561034d5750600092508291508190508061040f565b6103578786610a7c565b5091506103648686610a7c565b91505088156103bb576001808a16811490610394908b901c67ffffffffffffffff16600860ff9082901c91161b90565b945080156103b95764e8d4a510006103ac84876112f4565b6103b6919061133a565b94505b505b871561040f5760018089168114906103e8908a901c67ffffffffffffffff16600860ff9082901c91161b90565b9350801561040d5764e8d4a5100061040083866112f4565b61040a919061133a565b93505b505b95509550955095915050565b6000808360000361043157506000905080610440565b61043b8484610a7c565b915091505b9250929050565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b5c736e4610491600586610d5b565b6040518263ffffffff1660e01b81526004016104af91815260200190565b602060405180830381865afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f091906112ac565b9050806000036105035750600092915050565b600073ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105eb576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301528516906370a0823190602401602060405180830381865afa1580156105c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e691906112ac565b610624565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16315b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b5c736e461066f600788610d5b565b6040518263ffffffff1660e01b815260040161068d91815260200190565b602060405180830381865afa1580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce91906112ac565b90506106db818484610a13565b95945050505050565b6040517fb5c736e4000000000000000000000000000000000000000000000000000000008152600a60048201526060906000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b5c736e490602401602060405180830381865afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079991906112ac565b90508067ffffffffffffffff8111156107b4576107b4611375565b6040519080825280602002602001820160405280156107f957816020015b6040805180820190915260008082526020820152815260200190600190039081
"devdoc": {
"kind": "dev",
"methods": {
"calcLiquidityExchangePricesSimulatedTime(uint256,uint256)": {
"params": {
"exchangePricesAndConfig_": "exchange prices and config packed uint256 read from storage",
"simulatedTimestamp_": "simulated block.timestamp"
},
"returns": {
"borrowExchangePrice_": "updated borrowExchangePrice",
"supplyExchangePrice_": "updated supplyExchangePrice"
}
},
"calcRevenue(uint256,uint256,uint256)": {
"details": "exposed for advanced revenue calculations",
"params": {
"exchangePricesAndConfig_": "exchange prices and config packed uint256 read from storage",
"liquidityTokenBalance_": "current balance of Liquidity contract (IERC20(token_).balanceOf(address(this)))",
"totalAmounts_": "total amounts packed uint256 read from storage"
},
"returns": {
"revenueAmount_": "collectable revenue amount"
}
},
"calcVaultExchangePricesSimulatedTime(uint256,uint256,uint256,uint256,uint256)": {
"params": {
"liquidityBorrowExchangePricesAndConfig_": "exchange prices and config packed uint256 read from storage for borrow token",
"liquiditySupplyExchangePricesAndConfig_": "exchange prices and config packed uint256 read from storage for supply token",
"simulatedTimestamp_": "simulated block.timestamp",
"vaultRates_": "rates read from storage for the vault (VaultResolver.getVaultVariables2Raw)",
"vaultVariables2_": "vaultVariables2 read from storage for the vault (VaultResolver.getRateRaw)"
},
"returns": {
"liqBorrowExPrice_": "latest liquidity's borrow token borrow exchange price",
"liqSupplyExPrice_": "latest liquidity's supply token supply exchange price",
"vaultBorrowExPrice_": "latest vault's borrow token exchange price",
"vaultSupplyExPrice_": "latest vault's supply token exchange price"
}
}
},
"stateVariables": {
"_NATIVE_TOKEN_ADDRESS": {
"details": "address that is mapped to the chain native token"
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"LIQUIDITY()": {
"notice": "address of the liquidity contract"
},
"calcLiquidityExchangePricesSimulatedTime(uint256,uint256)": {
"notice": "calculates interest (exchange prices) at Liquidity for a token given its' exchangePricesAndConfig from storage for a simulated `block.timestamp` set via `simulatedTimestamp_`."
},
"calcLiquidityTotalAmountsSimulatedTime(uint256,uint256,uint256)": {
"notice": "returns the `totalSupply_` and `totalBorrow_` at Liquidity at a certain point in time given the stacked uint256 storage data for total amounts and exchange prices and config."
},
"calcLiquidityUserAmountsSimulatedTime(uint256,uint256,uint256,uint256,uint256)": {
"notice": "returns the `supply_` and `borrow_` for a user (protocol) at Liquidity at a certain point in time given the stacked uint256 storage data for total amounts and exchange prices and config."
},
"calcRevenue(uint256,uint256,uint256)": {
"notice": "gets the `revenueAmount_` for a token given its' totalAmounts and exchangePricesAndConfig from stacked uint256 storage slots and the balance of the Fluid liquidity contract for the token."
},
"calcRevenueSimulatedTime(uint256,uint256,uint256,uint256)": {
"notice": "same as `calcRevenue`, but for a simulated `block.timestamp` set via `simulatedTimestamp_`."
},
"calcVaultExchangePricesSimulatedTime(uint256,uint256,uint256,uint256,uint256)": {
"notice": "Calculates new vault exchange prices based on storage data for a simulated `block.timestamp` set via `simulatedTimestamp_`."
},
"getRevenue(address)": {
"notice": "gets the currently uncollected `revenueAmount_` for a `token_`."
},
"getRevenueCollector()": {
"notice": "address of contract that gets sent the revenue. Configurable by governance"
},
"getRevenues()": {
"notice": "gets the currently uncollected revenues for all listed tokens at Liquidity"
}
},
"notice": "Fluid Revenue resolver",
"version": 1
},
"storageLayout": {
"storage": [],
"types": null
}
}