creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "ConvexDepositToken.sol": {
        "content": "// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\nimport \"IERC20Metadata.sol\";\nimport \"ICurveProxy.sol\";\nimport \"IVault.sol\";\nimport \"PrismaOwnable.sol\";\n\ninterface IBooster {\n    function deposit(uint256 _pid, uint256 _amount, bool _stake) external returns (bool);\n\n    function poolInfo(\n        uint256 _pid\n    )\n        external\n        view\n        returns (address lpToken, address token, address gauge, address crvRewards, address stash, bool shutdown);\n}\n\ninterface IBaseRewardPool {\n    function withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool);\n\n    function getReward(address _account, bool _claimExtras) external returns (bool);\n\n    function getReward() external;\n}\n\ninterface IConvexStash {\n    function tokenInfo(address _token) external view returns (address token, address rewards);\n}\n\n/**\n    @title Prisma Convex Deposit Wrapper\n    @notice Standard ERC20 interface around a deposit of a Curve LP token into Convex.\n            Tokens are minted by depositing Curve LP tokens, and burned to receive the LP\n            tokens back. Holders may claim PRISMA emissions on top of the earned CRV and CVX.\n */\ncontract ConvexDepositToken is PrismaOwnable {\n    IERC20 public immutable PRISMA;\n    IERC20 public immutable CRV;\n    IERC20 public immutable CVX;\n\n    IBooster public immutable booster;\n    ICurveProxy public immutable curveProxy;\n    IPrismaVault public immutable vault;\n\n    IERC20 public lpToken;\n    uint256 public depositPid;\n    IBaseRewardPool public crvRewards;\n    IBaseRewardPool public cvxRewards;\n\n    uint256 public emissionId;\n\n    string public symbol;\n    string public name;\n    uint256 public constant decimals = 18;\n    uint256 public totalSupply;\n\n    mapping(address => uint256) public balanceOf;\n    mapping(address => mapping(address => uint256)) public allowance;\n\n    // each array relates to [PRISMA, CRV, CVX]\n    uint256[3] public rewardIntegral;\n    uint128[3] public rewardRate;\n\n    // last known balances for CRV, CVX\n    // must track because anyone can trigger a claim for any address\n    uint128 public lastCrvBalance;\n    uint128 public lastCvxBalance;\n\n    uint32 public lastUpdate;\n    uint32 public periodFinish;\n\n    // maximum percent of weekly emissions that can be directed to this receiver,\n    // as a whole number out of 10000. emissions greater than this amount are stored\n    // until `Vault.lockWeeks() == 0` and then returned to the unallocated supply.\n    uint16 public maxWeeklyEmissionPct;\n    uint128 public storedExcessEmissions;\n\n    mapping(address => uint256[3]) public rewardIntegralFor;\n    mapping(address => uint128[3]) private storedPendingReward;\n\n    uint256 constant REWARD_DURATION = 1 weeks;\n\n    event Transfer(address indexed from, address indexed to, uint256 value);\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n    event LPTokenDeposited(address indexed lpToken, address indexed receiver, uint256 amount);\n    event LPTokenWithdrawn(address indexed lpToken, address indexed receiver, uint256 amount);\n    event RewardClaimed(address indexed receiver, uint256 prismaAmount, uint256 crvAmount, uint256 cvxAmount);\n    event MaxWeeklyEmissionPctSet(uint256 pct);\n    event MaxWeeklyEmissionsExceeded(uint256 allocated, uint256 maxAllowed);\n\n    constructor(\n        IERC20 _prisma,\n        IERC20 _CRV,\n        IERC20 _CVX,\n        IBooster _booster,\n        ICurveProxy _proxy,\n        IPrismaVault _vault,\n        address prismaCore\n    ) PrismaOwnable(prismaCore) {\n        PRISMA = _prisma;\n        CRV = _CRV;\n        CVX = _CVX;\n        booster = _booster;\n        curveProxy = _proxy;\n        vault = _vault;\n    }\n\n    function initialize(uint256 pid) external {\n        require(address(lpToken) == address(0), \"Already initialized\");\n        (address _lpToken, , , address _crvRewards, address _stash, ) = booster.poolInfo(pid);\n\n        depositPid = pid;\n        lpToken = IERC20(_lpToken);\n        crvRewards = IBaseRewardPool(_crvRewards);\n\n        (, address _rewards) = IConvexStash(_stash).tokenInfo(address(CVX));\n        require(_rewards != address(0), \"Pool has no CVX rewards\");\n        cvxRewards = IBaseRewardPool(_rewards);\n\n        IERC20(_lpToken).approve(address(booster), type(uint256).max);\n        PRISMA.approve(address(vault), type(uint256).max);\n\n        string memory _symbol = IERC20Metadata(_lpToken).symbol();\n        name = string.concat(\"Prisma \", _symbol, \" Convex Deposit\");\n        symbol = string.concat(\"prisma-\", _symbol);\n\n        periodFinish = uint32(block.timestamp - 1);\n        maxWeeklyEmissionPct = 10000;\n        emit MaxWeeklyEmissionPctSet(10000);\n    }\n\n    function setMaxWeeklyEmissionPct(uint16 _maxWeeklyEmissionPct) external onlyOwner returns (bool) {\n        require(_maxWeeklyEmissionPct < 10001, \"Invalid maxWeeklyEmissionPct\");\n        maxWeeklyEmissionPct = _maxWeeklyEmissionPct;\n\n        emit MaxWeeklyEmissionPctSet(_maxWeeklyEmissionPct);\n        return true;\n    }\n\n    function notifyRegisteredId(uint256[] memory assignedIds) external returns (bool) {\n        require(msg.sender == address(vault));\n        require(emissionId == 0, \"Already registered\");\n        require(assignedIds.length == 1, \"Incorrect ID count\");\n        emissionId = assignedIds[0];\n\n        return true;\n    }\n\n    function deposit(address receiver, uint256 amount) external returns (bool) {\n        require(amount > 0, \"Cannot deposit zero\");\n        lpToken.transferFrom(msg.sender, address(this), amount);\n        booster.deposit(depositPid, amount, true);\n        uint256 balance = balanceOf[receiver];\n        uint256 supply = totalSupply;\n        balanceOf[receiver] = balance + amount;\n        totalSupply = supply + amount;\n\n        _updateIntegrals(receiver, balance, supply);\n        if (block.timestamp / 1 weeks >= periodFinish / 1 weeks) _fetchRewards();\n\n        emit Transfer(address(0), receiver, amount);\n        emit LPTokenDeposited(address(lpToken), receiver, amount);\n\n        return true;\n    }\n\n    function withdraw(address receiver, uint256 amount) external returns (bool) {\n        require(amount > 0, \"Cannot withdraw zero\");\n        uint256 balance = balanceOf[msg.sender];\n        uint256 supply = totalSupply;\n        balanceOf[msg.sender] = balance - amount;\n        totalSupply = supply - amount;\n\n        crvRewards.withdrawAndUnwrap(amount, false);\n        lpToken.transfer(receiver, amount);\n\n        _updateIntegrals(msg.sender, balance, supply);\n        if (block.timestamp / 1 weeks >= periodFinish / 1 weeks) _fetchRewards();\n\n        emit Transfer(msg.sender, address(0), amount);\n        emit LPTokenWithdrawn(address(lpToken), receiver, amount);\n\n        return true;\n    }\n\n    function _claimReward(address claimant, address receiver) internal returns (uint128[3] memory amounts) {\n        _updateIntegrals(claimant, balanceOf[claimant], totalSupply);\n        amounts = storedPendingReward[claimant];\n        delete storedPendingReward[claimant];\n        lastCrvBalance -= amounts[1];\n        lastCvxBalance -= amounts[2];\n\n        CRV.transfer(receiver, amounts[1]);\n        CVX.transfer(receiver, amounts[2]);\n\n        return amounts;\n    }\n\n    function claimReward(\n        address receiver\n    ) external returns (uint256 prismaAmount, uint256 crvAmount, uint256 cvxAmount) {\n        uint128[3] memory amounts = _claimReward(msg.sender, receiver);\n        vault.transferAllocatedTokens(msg.sender, receiver, amounts[0]);\n\n        emit RewardClaimed(receiver, amounts[0], amounts[1], amounts[2]);\n        return (amounts[0], amounts[1], amounts[2]);\n    }\n\n    function vaultClaimReward(address claimant, address receiver) external returns (uint256) {\n        require(msg.sender == address(vault));\n        uint128[3] memory amounts = _claimReward(claimant, receiver);\n\n        emit RewardClaimed(claimant, 0, amounts[1], amounts[2]);\n        return amounts[0];\n    }\n\n    function claimableReward(\n        address account\n    ) external view returns (uint256 prismaAmount, uint256 crvAmount, uint256 cvxAmount) {\n        uint256 updated = periodFinish;\n        if (updated > block.timestamp) updated = block.timestamp;\n        uint256 duration = updated - lastUpdate;\n        uint256 balance = balanceOf[account];\n        uint256 supply = totalSupply;\n        uint256[3] memory amounts;\n\n        for (uint256 i = 0; i < 3; i++) {\n            uint256 integral = rewardIntegral[i];\n            if (supply > 0) {\n                integral += (duration * rewardRate[i] * 1e18) / supply;\n            }\n            uint256 integralFor = rewardIntegralFor[account][i];\n            amounts[i] = storedPendingReward[account][i] + ((balance * (integral - integralFor)) / 1e18);\n        }\n        return (amounts[0], amounts[1], amounts[2]);\n    }\n\n    function approve(address _spender, uint256 _value) public returns (bool) {\n        allowance[msg.sender][_spender] = _value;\n        emit Approval(msg.sender, _spender, _value);\n        return true;\n    }\n\n    function _transfer(address _from, address _to, uint256 _value) internal {\n        uint256 supply = totalSupply;\n\n        uint256 balance = balanceOf[_from];\n        balanceOf[_from] = balance - _value;\n        _updateIntegrals(_from, balance, supply);\n\n        balance = balanceOf[_to];\n        balanceOf[_to] = balance + _value;\n        _updateIntegrals(_to, balance, supply);\n\n        emit Transfer(_from, _to, _value);\n    }\n\n    function transfer(address _to, uint256 _value) public returns (bool) {\n        _transfer(msg.sender, _to, _value);\n        return true;\n    }\n\n    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {\n        uint256 allowed = allowance[_from][msg.sender];\n        if (allowed != type(uint256).max) {\n            allowance[_from][msg.sender] = allowed - _value;\n        }\n        _transfer(_from, _to, _value);\n        return true;\n    }\n\n    function _updateIntegrals(address account, uint256 balance, uint256 supply) internal {\n        uint256 updated = periodFinish;\n        if (updated > block.timestamp) updated = block.timestamp;\n        uint256 duration = updated - lastUpdate;\n        if (duration > 0) lastUpdate = uint32(updated);\n\n        for (uint256 i = 0; i < 3; i++) {\n            uint256 integral = rewardIntegral[i];\n            if (duration > 0 && supply > 0) {\n                integral += (duration * rewardRate[i] * 1e18) / supply;\n                rewardIntegral[i] = integral;\n            }\n            if (account != address(0)) {\n                uint256 integralFor = rewardIntegralFor[account][i];\n                if (integral > integralFor) {\n                    storedPendingReward[account][i] += uint128((balance * (integral - integralFor)) / 1e18);\n                    rewardIntegralFor[account][i] = integral;\n                }\n            }\n        }\n    }\n\n    function pushExcessEmissions() external {\n        _pushExcessEmissions(0);\n    }\n\n    function _pushExcessEmissions(uint256 newAmount) internal {\n        if (vault.lockWeeks() > 0) storedExcessEmissions = uint128(storedExcessEmissions + newAmount);\n        else {\n            uint256 excess = storedExcessEmissions + newAmount;\n            storedExcessEmissions = 0;\n            vault.transferAllocatedTokens(address(this), address(this), excess);\n            vault.increaseUnallocatedSupply(PRISMA.balanceOf(address(this)));\n        }\n    }\n\n    function fetchRewards() external {\n        require(block.timestamp / 1 weeks >= periodFinish / 1 weeks, \"Can only fetch once per week\");\n        _updateIntegrals(address(0), 0, totalSupply);\n        _fetchRewards();\n    }\n\n    function _fetchRewards() internal {\n        uint256 prismaAmount;\n        uint256 id = emissionId;\n        if (id > 0) prismaAmount = vault.allocateNewEmissions(id);\n        crvRewards.getReward(address(this), false);\n        cvxRewards.getReward();\n\n        // apply max weekly emission limit\n        uint256 maxWeekly = maxWeeklyEmissionPct;\n        if (maxWeekly < 10000) {\n            maxWeekly = (vault.weeklyEmissions(vault.getWeek()) * maxWeekly) / 10000;\n            if (prismaAmount > maxWeekly) {\n                emit MaxWeeklyEmissionsExceeded(prismaAmount, maxWeekly);\n                _pushExcessEmissions(prismaAmount - maxWeekly);\n                prismaAmount = maxWeekly;\n            }\n        }\n\n        uint256 last = lastCrvBalance;\n        uint256 crvAmount = CRV.balanceOf(address(this)) - last;\n        // apply CRV fee and send fee tokens to curveProxy\n        uint256 fee = (crvAmount * curveProxy.crvFeePct()) / 10000;\n        if (fee > 0) {\n            crvAmount -= fee;\n            CRV.transfer(address(curveProxy), fee);\n        }\n        lastCrvBalance = uint128(last + crvAmount);\n\n        last = lastCvxBalance;\n        uint256 cvxAmount = CVX.balanceOf(address(this)) - last;\n        lastCvxBalance = uint128(cvxAmount + last);\n\n        uint256 _periodFinish = periodFinish;\n        if (block.timestamp < _periodFinish) {\n            uint256 remaining = _periodFinish - block.timestamp;\n            prismaAmount += remaining * rewardRate[0];\n            crvAmount += remaining * rewardRate[1];\n            cvxAmount += remaining * rewardRate[2];\n        }\n\n        rewardRate[0] = uint128(prismaAmount / REWARD_DURATION);\n        rewardRate[1] = uint128(crvAmount / REWARD_DURATION);\n        rewardRate[2] = uint128(cvxAmount / REWARD_DURATION);\n\n        lastUpdate = uint32(block.timestamp);\n        periodFinish = uint32(block.timestamp + REWARD_DURATION);\n    }\n}\n"
      },
      "IERC20Metadata.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"
      },
      "IERC20.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"
      },
      "ICurveProxy.sol": {
        "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ICurveProxy {\n    struct GaugeWeightVote {\n        address gauge;\n        uint256 weight;\n    }\n\n    struct TokenBalance {\n        address token;\n        uint256 amount;\n    }\n\n    event CrvFeePctSet(uint256 feePct);\n\n    function approveGaugeDeposit(address gauge, address depositor) external returns (bool);\n\n    function claimFees() external returns (uint256);\n\n    function execute(address target, bytes calldata data) external returns (bytes memory);\n\n    function lockCRV() external returns (bool);\n\n    function mintCRV(address gauge, address receiver) external returns (uint256);\n\n    function setCrvFeePct(uint64 _feePct) external returns (bool);\n\n    function setDepositManager(address _depositManager) external returns (bool);\n\n    function setExecutePermissions(\n        address caller,\n        address target,\n        bytes4[] calldata selectors,\n        bool permitted\n    ) external returns (bool);\n\n    function setGaugeRewardsReceiver(address gauge, address receiver) external returns (bool);\n\n    function setPerGaugeApproval(address caller, address gauge) external returns (bool);\n\n    function setVoteManager(address _voteManager) external returns (bool);\n\n    function transferTokens(address receiver, TokenBalance[] calldata balances) external returns (bool);\n\n    function voteForGaugeWeights(GaugeWeightVote[] calldata votes) external returns (bool);\n\n    function voteInCurveDao(address aragon, uint256 id, bool support) external returns (bool);\n\n    function withdrawFromGauge(\n        address gauge,\n        address lpToken,\n        uint256 amount,\n        address receiver\n    ) external returns (bool);\n\n    function CRV() external view returns (address);\n\n    function PRISMA_CORE() external view returns (address);\n\n    function crvFeePct() external view returns (uint64);\n\n    function depositManager() external view returns (address);\n\n    function feeDistributor() external view returns (address);\n\n    function feeToken() external view returns (address);\n\n    function gaugeController() external view returns (address);\n\n    function guardian() external view returns (address);\n\n    function minter() external view returns (address);\n\n    function owner() external view returns (address);\n\n    function perGaugeApproval(address caller) external view returns (address gauge);\n\n    function unlockTime() external view returns (uint64);\n\n    function voteManager() external view returns (address);\n\n    function votingEscrow() external view returns (address);\n}\n"
      },
      "IVault.sol": {
        "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPrismaVault {\n    struct InitialAllowance {\n        address receiver;\n        uint256 amount;\n    }\n\n    event BoostCalculatorSet(address boostCalculator);\n    event BoostDelegationSet(address indexed boostDelegate, bool isEnabled, uint256 feePct, address callback);\n    event EmissionScheduleSet(address emissionScheduler);\n    event IncreasedAllocation(address indexed receiver, uint256 increasedAmount);\n    event NewReceiverRegistered(address receiver, uint256 id);\n    event ReceiverIsActiveStatusModified(uint256 indexed id, bool isActive);\n    event UnallocatedSupplyIncreased(uint256 increasedAmount, uint256 unallocatedTotal);\n    event UnallocatedSupplyReduced(uint256 reducedAmount, uint256 unallocatedTotal);\n\n    function allocateNewEmissions(uint256 id) external returns (uint256);\n\n    function batchClaimRewards(\n        address receiver,\n        address boostDelegate,\n        address[] calldata rewardContracts,\n        uint256 maxFeePct\n    ) external returns (bool);\n\n    function increaseUnallocatedSupply(uint256 amount) external returns (bool);\n\n    function registerReceiver(address receiver, uint256 count) external returns (bool);\n\n    function setBoostCalculator(address _boostCalculator) external returns (bool);\n\n    function setBoostDelegationParams(bool isEnabled, uint256 feePct, address callback) external returns (bool);\n\n    function setEmissionSchedule(address _emissionSchedule) external returns (bool);\n\n    function setInitialParameters(\n        address _emissionSchedule,\n        address _boostCalculator,\n        uint256 totalSupply,\n        uint64 initialLockWeeks,\n        uint128[] calldata _fixedInitialAmounts,\n        InitialAllowance[] calldata initialAllowances\n    ) external;\n\n    function setReceiverIsActive(uint256 id, bool isActive) external returns (bool);\n\n    function transferAllocatedTokens(address claimant, address receiver, uint256 amount) external returns (bool);\n\n    function transferTokens(address token, address receiver, uint256 amount) external returns (bool);\n\n    function PRISMA_CORE() external view returns (address);\n\n    function allocated(address) external view returns (uint256);\n\n    function boostCalculator() external view returns (address);\n\n    function boostDelegation(address) external view returns (bool isEnabled, uint16 feePct, address callback);\n\n    function claimableRewardAfterBoost(\n        address account,\n        address receiver,\n        address boostDelegate,\n        address rewardContract\n    ) external view returns (uint256 adjustedAmount, uint256 feeToDelegate);\n\n    function emissionSchedule() external view returns (address);\n\n    function getClaimableWithBoost(address claimant) external view returns (uint256 maxBoosted, uint256 boosted);\n\n    function getWeek() external view returns (uint256 week);\n\n    function guardian() external view returns (address);\n\n    function idToReceiver(uint256) external view returns (address account, bool isActive);\n\n    function lockWeeks() external view returns (uint64);\n\n    function locker() external view returns (address);\n\n    function owner() external view returns (address);\n\n    function claimableBoostDelegationFees(address claimant) external view returns (uint256 amount);\n\n    function prismaToken() external view returns (address);\n\n    function receiverUpdatedWeek(uint256) external view returns (uint16);\n\n    function totalUpdateWeek() external view returns (uint64);\n\n    function unallocatedTotal() external view returns (uint128);\n\n    function voter() external view returns (address);\n\n    function weeklyEmissions(uint256) external view returns (uint128);\n}\n"
      },
      "PrismaOwnable.sol": {
        "content": "// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\nimport \"IPrismaCore.sol\";\n\n/**\n    @title Prisma Ownable\n    @notice Contracts inheriting `PrismaOwnable` have the same owner as `PrismaCore`.\n            The ownership cannot be independently modified or renounced.\n */\ncontract PrismaOwnable {\n    IPrismaCore public immutable PRISMA_CORE;\n\n    constructor(address _prismaCore) {\n        PRISMA_CORE = IPrismaCore(_prismaCore);\n    }\n\n    modifier onlyOwner() {\n        require(msg.sender == PRISMA_CORE.owner(), \"Only owner\");\n        _;\n    }\n\n    function owner() public view returns (address) {\n        return PRISMA_CORE.owner();\n    }\n\n    function guardian() public view returns (address) {\n        return PRISMA_CORE.guardian();\n    }\n}\n"
      },
      "IPrismaCore.sol": {
        "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPrismaCore {\n    event FeeReceiverSet(address feeReceiver);\n    event GuardianSet(address guardian);\n    event NewOwnerAccepted(address oldOwner, address owner);\n    event NewOwnerCommitted(address owner, address pendingOwner, uint256 deadline);\n    event NewOwnerRevoked(address owner, address revokedOwner);\n    event Paused();\n    event PriceFeedSet(address priceFeed);\n    event Unpaused();\n\n    function acceptTransferOwnership() external;\n\n    function commitTransferOwnership(address newOwner) external;\n\n    function revokeTransferOwnership() external;\n\n    function setFeeReceiver(address _feeReceiver) external;\n\n    function setGuardian(address _guardian) external;\n\n    function setPaused(bool _paused) external;\n\n    function setPriceFeed(address _priceFeed) external;\n\n    function OWNERSHIP_TRANSFER_DELAY() external view returns (uint256);\n\n    function feeReceiver() external view returns (address);\n\n    function guardian() external view returns (address);\n\n    function owner() external view returns (address);\n\n    function ownershipTransferDeadline() external view returns (uint256);\n\n    function paused() external view returns (bool);\n\n    function pendingOwner() external view returns (address);\n\n    function priceFeed() external view returns (address);\n\n    function startTime() external view returns (uint256);\n}\n"
      }
    },
    "settings": {
      "evmVersion": "paris",
      "optimizer": {
        "enabled": true,
        "runs": 200
      },
      "libraries": {
        "ConvexDepositToken.sol": {}
      },
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "devdoc",
            "userdoc",
            "metadata",
            "abi"
          ]
        }
      }
    }
  }}