UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

98 lines (97 loc) 4.91 kB
{ "_format": "hh-sol-artifact-1", "contractName": "RoundEarningsSettingsUtils", "sourceName": "contracts/x-allocation-voting-governance/libraries/RoundEarningsSettingsUtils.sol", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "provided", "type": "uint256" } ], "name": "AppSharesCapTooHigh", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "provided", "type": "uint256" } ], "name": "BaseAllocationPercentageTooHigh", "type": "error" }, { "inputs": [], "name": "appSharesCap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "baseAllocationPercentage", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "getRoundAppSharesCap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "getRoundBaseAllocationPercentage", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x6102ad61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100775760003560e01c80630a0e74ef1461007c5780630eca87fb146100a157806374038935146100b45780637db361fe146100d65780638ab52d4b146100f6578063bb7de6d4146100fe578063f5fae13614610106575b600080fd5b61008f61008a36600461025e565b610126565b60405190815260200160405180910390f35b61008f6100af36600461025e565b610146565b8180156100c057600080fd5b506100d46100cf36600461025e565b610166565b005b8180156100e257600080fd5b506100d46100f136600461025e565b6101a4565b61008f6101dd565b61008f6101ef565b81801561011257600080fd5b506100d461012136600461025e565b610204565b60008061013161023a565b60009384526003016020525050604090205490565b60008061015161023a565b60009384526002016020525050604090205490565b606481111561019057604051637c1c7ee560e11b8152600481018290526024015b60405180910390fd5b600061019a61023a565b6001019190915550565b60006101ae61023a565b805460009384526002820160209081526040808620929092556001830154600390930190529092209190915550565b6000806101e861023a565b5492915050565b6000806101fa61023a565b6001015492915050565b60648111156102295760405163058bb03760e41b815260048101829052602401610187565b600061023361023a565b9190915550565b7fc74db4e191410c7a6c18f14684e1218b5e87c449d0f81ab47e8c67bf971c350090565b60006020828403121561027057600080fd5b503591905056fea2646970667358221220bf967545e7ec2ff7fe06071bef5cef8cc256a6a5f0725e39401e3e500040287b64736f6c63430008140033", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100775760003560e01c80630a0e74ef1461007c5780630eca87fb146100a157806374038935146100b45780637db361fe146100d65780638ab52d4b146100f6578063bb7de6d4146100fe578063f5fae13614610106575b600080fd5b61008f61008a36600461025e565b610126565b60405190815260200160405180910390f35b61008f6100af36600461025e565b610146565b8180156100c057600080fd5b506100d46100cf36600461025e565b610166565b005b8180156100e257600080fd5b506100d46100f136600461025e565b6101a4565b61008f6101dd565b61008f6101ef565b81801561011257600080fd5b506100d461012136600461025e565b610204565b60008061013161023a565b60009384526003016020525050604090205490565b60008061015161023a565b60009384526002016020525050604090205490565b606481111561019057604051637c1c7ee560e11b8152600481018290526024015b60405180910390fd5b600061019a61023a565b6001019190915550565b60006101ae61023a565b805460009384526002820160209081526040808620929092556001830154600390930190529092209190915550565b6000806101e861023a565b5492915050565b6000806101fa61023a565b6001015492915050565b60648111156102295760405163058bb03760e41b815260048101829052602401610187565b600061023361023a565b9190915550565b7fc74db4e191410c7a6c18f14684e1218b5e87c449d0f81ab47e8c67bf971c350090565b60006020828403121561027057600080fd5b503591905056fea2646970667358221220bf967545e7ec2ff7fe06071bef5cef8cc256a6a5f0725e39401e3e500040287b64736f6c63430008140033", "linkReferences": {}, "deployedLinkReferences": {} }