{
  "contractName": "DgxDemurrageCalculator",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "_initial_balance",
          "type": "uint256"
        },
        {
          "name": "_days_elapsed",
          "type": "uint256"
        }
      ],
      "name": "calculateDemurrage",
      "outputs": [
        {
          "name": "_demurrage_fees",
          "type": "uint256"
        },
        {
          "name": "_no_demurrage_fees",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.4.25;\n\n/// @title Digix Gold Token Demurrage Calculator\n/// @author Digix Holdings Pte Ltd\n/// @notice This contract is meant to be used by exchanges/other parties who want to calculate the DGX demurrage fees, provided an initial balance and the days elapsed\ncontract DgxDemurrageCalculator {\n    function calculateDemurrage(uint256 _initial_balance, uint256 _days_elapsed)\n        public\n        view\n        returns (uint256 _demurrage_fees, bool _no_demurrage_fees);\n}\n",
  "sourcePath": "/Users/aeufemio/projects/dgx/contracts/dao-contracts/contracts/interface/DgxDemurrageCalculator.sol",
  "ast": {
    "absolutePath": "/Users/aeufemio/projects/dgx/contracts/dao-contracts/contracts/interface/DgxDemurrageCalculator.sol",
    "exportedSymbols": {
      "DgxDemurrageCalculator": [
        7859
      ]
    },
    "id": 7860,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 7847,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".25"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:20"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": "@title Digix Gold Token Demurrage Calculator\n @author Digix Holdings Pte Ltd\n @notice This contract is meant to be used by exchanges/other parties who want to calculate the DGX demurrage fees, provided an initial balance and the days elapsed",
        "fullyImplemented": false,
        "id": 7859,
        "linearizedBaseContracts": [
          7859
        ],
        "name": "DgxDemurrageCalculator",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 7858,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "calculateDemurrage",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7852,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7849,
                  "name": "_initial_balance",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "344:24:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7848,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "344:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 7851,
                  "name": "_days_elapsed",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "370:21:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7850,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "370:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "343:49:20"
            },
            "payable": false,
            "returnParameters": {
              "id": 7857,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7854,
                  "name": "_demurrage_fees",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "438:23:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7853,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "438:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 7856,
                  "name": "_no_demurrage_fees",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "463:23:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 7855,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "463:4:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "437:50:20"
            },
            "scope": 7859,
            "src": "316:172:20",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 7860,
        "src": "278:212:20"
      }
    ],
    "src": "0:491:20"
  },
  "legacyAST": {
    "absolutePath": "/Users/aeufemio/projects/dgx/contracts/dao-contracts/contracts/interface/DgxDemurrageCalculator.sol",
    "exportedSymbols": {
      "DgxDemurrageCalculator": [
        7859
      ]
    },
    "id": 7860,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 7847,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".25"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:20"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": "@title Digix Gold Token Demurrage Calculator\n @author Digix Holdings Pte Ltd\n @notice This contract is meant to be used by exchanges/other parties who want to calculate the DGX demurrage fees, provided an initial balance and the days elapsed",
        "fullyImplemented": false,
        "id": 7859,
        "linearizedBaseContracts": [
          7859
        ],
        "name": "DgxDemurrageCalculator",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 7858,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "calculateDemurrage",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7852,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7849,
                  "name": "_initial_balance",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "344:24:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7848,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "344:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 7851,
                  "name": "_days_elapsed",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "370:21:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7850,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "370:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "343:49:20"
            },
            "payable": false,
            "returnParameters": {
              "id": 7857,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7854,
                  "name": "_demurrage_fees",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "438:23:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 7853,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "438:7:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 7856,
                  "name": "_no_demurrage_fees",
                  "nodeType": "VariableDeclaration",
                  "scope": 7858,
                  "src": "463:23:20",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 7855,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "463:4:20",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "437:50:20"
            },
            "scope": 7859,
            "src": "316:172:20",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 7860,
        "src": "278:212:20"
      }
    ],
    "src": "0:491:20"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.2",
  "updatedAt": "2020-03-13T02:38:46.074Z"
}