{
    "Function": "getCompoundedBoldDeposit",
    "File": "contracts/src/StabilityPool.sol",
    "Parent Contracts": [
        "contracts/src/Interfaces/IStabilityPoolEvents.sol",
        "contracts/src/Interfaces/IStabilityPool.sol",
        "contracts/src/Interfaces/IBoldRewardsReceiver.sol",
        "contracts/src/Dependencies/LiquityBase.sol",
        "contracts/src/Interfaces/ILiquityBase.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getCompoundedBoldDeposit(address _depositor) public view override returns (uint256 compoundedDeposit) {\n        uint256 initialDeposit = deposits[_depositor].initialValue;\n        if (initialDeposit == 0) return 0;\n\n        Snapshots storage snapshots = depositSnapshots[_depositor];\n\n        uint256 scaleDiff = currentScale - snapshots.scale;\n\n        // Compute the compounded deposit. If one or more scale changes in `P` were made during the deposit's lifetime,\n        // account for them.\n        // If more than `MAX_SCALE_FACTOR_EXPONENT` scale changes were made, then the divisor is greater than 2^256 so\n        // any deposit amount would be rounded down to zero.\n        if (scaleDiff <= MAX_SCALE_FACTOR_EXPONENT) {\n            compoundedDeposit = (initialDeposit * P) / snapshots.P / SCALE_FACTOR ** scaleDiff;\n        } else {\n            compoundedDeposit = 0;\n        }\n    }"
}