UNPKG

@mean-finance/dca-v2-core

Version:

Core smart contracts of DCA v2 by mean.finance

177 lines (176 loc) 3.73 kB
{ "_format": "hh-sol-artifact-1", "contractName": "DCAHubParameters", "sourceName": "contracts/DCAHub/DCAHubParameters.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes1", "name": "", "type": "bytes1" }, { "internalType": "uint32", "name": "", "type": "uint32" } ], "name": "accumRatio", "outputs": [ { "internalType": "uint256", "name": "accumRatioAToB", "type": "uint256" }, { "internalType": "uint256", "name": "accumRatioBToA", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "activeSwapIntervals", "outputs": [ { "internalType": "bytes1", "name": "", "type": "bytes1" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "platformBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes1", "name": "", "type": "bytes1" }, { "internalType": "uint32", "name": "", "type": "uint32" } ], "name": "swapAmountDelta", "outputs": [ { "internalType": "uint128", "name": "swapDeltaAToB", "type": "uint128" }, { "internalType": "uint128", "name": "swapDeltaBToA", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes1", "name": "", "type": "bytes1" } ], "name": "swapData", "outputs": [ { "internalType": "uint32", "name": "performedSwaps", "type": "uint32" }, { "internalType": "uint224", "name": "nextAmountToSwapAToB", "type": "uint224" }, { "internalType": "uint32", "name": "lastSwappedAt", "type": "uint32" }, { "internalType": "uint224", "name": "nextAmountToSwapBToA", "type": "uint224" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }