0 txs
0 calls
constructor
constructor(address token, address payableERC20, uint256 dev_fee, uint256 revenue_share_percent, uint256[] interest_amount_tiers, uint256[] interest_percent_tiers, address innovatorHubV1, address swapContract)
functions
getConfig
viewfunction getConfig() view returns (address owner, address token, address payableERC20, uint256 dev_fee, uint256[] interest_amount_tiers, uint256[] interest_percent_tiers)
getLastAutoPerformIndex
viewfunction getLastAutoPerformIndex() view returns (uint256)
getStats
viewfunction getStats(address wallet) view returns (uint256 num_contributors, uint256 company_earned_amount, uint256 last_payment, uint256 total_active_amount, uint256 total_pending_amount, uint256 user_active_amount, uint256 user_pending_amount, uint256 user_profit_amount, uint256 user_paid_interest, uint256 last_auto_perform_index)
getStatsV1
viewfunction getStatsV1(address wallet) view returns (uint256 num_contributors, uint256 pool_balance, uint256 last_payment, uint256 user_contribution_amt, uint256 user_contribution_pending_amt, uint256 user_paid_interest)
VERSION
viewfunction VERSION() view returns (string)
approve
nonpayablefunction approve(address spender) returns (bool)
contribute
nonpayablefunction contribute(uint256 amount)
migrate
nonpayablefunction migrate()
migrateOwner
nonpayablefunction migrateOwner(address wallet)
migrateWallet
nonpayablefunction migrateWallet(address newWallet)
pay_interest_by_shares
nonpayablefunction pay_interest_by_shares(uint256 companyEarnedAmount)
performAutomation
nonpayablefunction performAutomation(uint256 batchSize)
setNewContractAddress
nonpayablefunction setNewContractAddress(address wallet)
setSwapContract
nonpayablefunction setSwapContract(address swapContract)
transferToNewContract
nonpayablefunction transferToNewContract(address from)
withdraw
nonpayablefunction withdraw(uint256 amount)
events
Contribution
event Contribution(address indexed contributor, uint8 contributionType, uint256 amount)
Indexed
event Indexed(address indexed contributor, uint256 amount)
MigrateWallet
event MigrateWallet(address indexed oldWallet, address indexed newWallet, uint256 active, uint256 pending, uint256 profit, uint256 paid)
PaySharesInterest
event PaySharesInterest(uint256 companyEarned, uint256 shareAmount, uint256 revenueShareAmount)
Withdrawal
event Withdrawal(address indexed contributor, address to, uint256 amount, uint256 fee)
errors
InnovatorHubAddressInvalidError
error InnovatorHubAddressInvalidError()
InnovatorHubAlreadyMigratedError
error InnovatorHubAlreadyMigratedError()
InnovatorHubAmountInvalidError
error InnovatorHubAmountInvalidError()
InnovatorHubApprovalInvalidAddressError
error InnovatorHubApprovalInvalidAddressError()
InnovatorHubInsufficientAllowanceError
error InnovatorHubInsufficientAllowanceError(address spender)
InnovatorHubInsufficientFundsError
error InnovatorHubInsufficientFundsError()
InnovatorHubNotReadyError
error InnovatorHubNotReadyError()
InnovatorHubNotVerifyError
error InnovatorHubNotVerifyError()
InnovatorHubTokenAddressInvalidError
error InnovatorHubTokenAddressInvalidError()
InnovatorHubWalletMigrateExceedNumberOfTimesError
error InnovatorHubWalletMigrateExceedNumberOfTimesError(uint256 time)
InnovatorHubWalletMigrateNotEmptyError
error InnovatorHubWalletMigrateNotEmptyError()
creation bytecode
0x60806040523480156200001157600080fd5b5060405162001e2d38038062001e2d83398101604081905262000034916200021b565b60028054336001600160a01b03199182161790915560058790556003805482166001600160a01b038b81169190911790915560068790556004805490921690891617905583516200008d906007906020870190620000dd565b508251620000a3906008906020860190620000dd565b50600a80546001600160a01b039384166001600160a01b031991821617909155600b805492909316911617905550620002e5945050505050565b8280548282559060005260206000209081019282156200011b579160200282015b828111156200011b578251825591602001919060010190620000fe565b50620001299291506200012d565b5090565b5b808211156200012957600081556001016200012e565b80516001600160a01b03811681146200015c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018957600080fd5b815160206001600160401b0380831115620001a857620001a862000161565b8260051b604051601f19603f83011681018181108482111715620001d057620001d062000161565b604052938452858101830193838101925087851115620001ef57600080fd5b83870191505b848210156200021057815183529183019190830190620001f5565b979650505050505050565b600080600080600080600080610100898b0312156200023957600080fd5b620002448962000144565b97506200025460208a0162000144565b60408a015160608b015160808c015192995090975095506001600160401b03808211156200028157600080fd5b6200028f8c838d0162000177565b955060a08b0151915080821115620002a657600080fd5b50620002b58b828c0162000177565b935050620002c660c08a0162000144565b9150620002d660e08a0162000144565b90509295985092959890939650565b611b3880620002f56000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063c3f909d411610097578063e3a299b411610066578063e3a299b414610271578063f3022de814610284578063ff14563314610297578063ffa1ad74146102aa57600080fd5b8063c3f909d41461020e578063d259ab4214610228578063daea85c51461023b578063e1eaf05a1461025e57600080fd5b8063846ef91a116100d3578063846ef91a146101835780638fd3ab8014610196578063c1cbbca71461019e578063c23f85d6146101b157600080fd5b80630d6852421461010557806323a12df21461011b5780632e1a7d4d1461013057806345d9514e14610143575b600080fd5b6015546040519081526020015b60405180910390f35b61012e610129366004611838565b6102db565b005b61012e61013e366004611861565b61031a565b610156610151366004611838565b6103a6565b604080519687526020870195909552938501929092526060840152608083015260a082015260c001610112565b61012e610191366004611838565b610435565b61012e61057b565b61012e6101ac366004611861565b6105ac565b6101c46101bf366004611838565b6105de565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015261012082015261014001610112565b6102166106a9565b604051610112969594939291906118b5565b61012e610236366004611838565b61077e565b61024e610249366004611838565b6107ca565b6040519015158152602001610112565b61012e61026c366004611838565b6107e0565b61012e61027f366004611861565b610810565b61012e610292366004611838565b6108bc565b61012e6102a5366004611861565b610908565b6102ce604051806040016040528060058152602001640322e302e360dc1b81525081565b604051610112919061190f565b6002546001600160a01b0316331461030e5760405162461bcd60e51b81526004016103059061195d565b60405180910390fd5b61031781610a3a565b50565b61032333610b29565b6103405760405163148bf82d60e11b815260040160405180910390fd5b3360008181526020819052604081209061035983610b9e565b8260020154610368919061199a565b90508084111561038b57604051631e465c3960e01b815260040160405180910390fd5b610396838486610bee565b9290920360029092019190915550565b600a54604051632fd0794d60e21b81526001600160a01b038381166004830152600092839283928392839283929091169063bf41e5349060240160c060405180830381865afa1580156103fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042191906119ad565b949c939b5091995097509550909350915050565b61043e33610b29565b61045b5760405163148bf82d60e11b815260040160405180910390fd5b60095433906001600160a01b03166104865760405163043be43f60e01b815260040160405180910390fd5b6001600160a01b0382166000908152602081905260408120600181015481549192916104b2919061199a565b6001600160a01b0380861660009081526001602090815260408083209388168352929052205490915060ff1661050657604051631edbe09360e01b81526001600160a01b0384166004820152602401610305565b6001600160a01b03808516600090815260016020908152604080832087851684529091529020805460ff191690556009546105449186911683610bee565b60006002830155601354600483015464e8d4a5100091610563916119f7565b61056d9190611a24565b826005018190555050505050565b61058433610b29565b6105a15760405163148bf82d60e11b815260040160405180910390fd5b6105aa33610a3a565b565b6105b533610b29565b6105d25760405163148bf82d60e11b815260040160405180910390fd5b61031733826000610dbb565b600c54600e54600f546010546001600160a01b038516600090815260208181526040808320815161010081018352815480825260018301549482018590526002830154938201939093526003820154606082015260048201546080820152600582015460a0820152600682015460ff16151560c082015260079091015460e0820152929493929091908590819081906106768c610b9e565b8160400151610685919061199a565b6060909101516015546011549c9e9b9d50989a979950959794969095949350915050565b60025460035460045460055460078054604080516020808402820181019092528281526001600160a01b039788169796871696909516946060938493919290919083018282801561071957602002820191906000526020600020905b815481526020019060010190808311610705575b50505050509150600260060180548060200260200160405190810160405280929190818152602001828054801561076f57602002820191906000526020600020905b81548152602001906001019080831161075b575b50505050509050909192939495565b6002546001600160a01b031633146107a85760405162461bcd60e51b81526004016103059061195d565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000336107d78184610ec5565b50600192915050565b6107e933610b29565b6108065760405163148bf82d60e11b815260040160405180910390fd5b6103173382610f37565b600c54601554818110610827575050600060155550565b6000610833848361199a565b9050828111156108405750815b815b8181101561089e576000600c600001828154811061086257610862611a46565b6000918252602090912001546001600160a01b031690506108828161123b565b61088b816112b1565b508061089681611a5c565b915050610842565b508281036108b05760006015556108b6565b60158190555b50505050565b6002546001600160a01b031633146108e65760405162461bcd60e51b81526004016103059061195d565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146109325760405162461bcd60e51b81526004016103059061195d565b600e5481101561095557604051637310ae9d60e11b815260040160405180910390fd5b600e546000906109659083611a75565b9050600060646002600401548361097c91906119f7565b6109869190611a24565b600f549091506000036109ac5760405163cc2fa84360e01b815260040160405180910390fd5b60125464e8d4a510008202816109c4576109c4611a0e565b60138054929091049091019055600e8390556002546003546109f4916001600160a01b03918216911630846113a2565b60408051848152602081018490529081018290527fae665281bead9ffe447f617fd12662acc1b92495edc99030a085f508a80d31c79060600160405180910390a1505050565b6001600160a01b03811660009081526020818152604091829020825161010081018452815481526001820154928101929092526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460ff1615801560c083015260079092015460e082015290610ad05760405163d989dabf60e01b815260040160405180910390fd5b600080610adc846103a6565b509450945050505060008183610af2919061199a565b905080600003610b03575050505050565b610b0f85826002610dbb565b610b18856112b1565b5050600160c0909201919091525050565b600b546040516396bfc22960e01b81526001600160a01b03838116600483015260009216906396bfc22990602401602060405180830381865afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b989190611a88565b92915050565b6001600160a01b03811660009081526020819052604081206005810154601354600483015464e8d4a5100091610bd3916119f7565b610bdd9190611a24565b610be79190611a75565b9392505050565b6001600160a01b0383161580610c0b57506001600160a01b038216155b15610c295760405163043be43f60e01b815260040160405180910390fd5b6001600160a01b038316600090815260208190526040812060018101548154919291610c55919061199a565b905080831115610c7857604051631e465c3960e01b815260040160405180910390fd5b6001820154839015610cae576000610c94828560010154611426565b600185018054829003905560108054829003905590910390505b600081118015610cbe5750825415155b15610ce1576000610cd3828560000154611426565b9050610cdf878261143c565b505b6009546000906001600160a01b03878116911614610d3c5784846003016000828254610d0d919061199a565b90915550610d1c905085611512565b600254600354919250610d3c916001600160a01b03908116911683611543565b6000610d488287611a75565b600354909150610d62906001600160a01b03168883611543565b604080516001600160a01b03898116825260208201849052918101849052908916907fc2b4a290c20fb28939d29f102514fbffd2b73c059ffba8b78250c94161d5fcc69060600160405180910390a25050505050505050565b81600003610ddc57604051637310ae9d60e11b815260040160405180910390fd5b6001600160a01b0383166000908152602081905260409020600181018054840190556010805484019055610e0f846115c4565b6000826002811115610e2357610e23611aaa565b03610e4557600454610e40906001600160a01b03168530866113a2565b610e7c565b6002826002811115610e5957610e59611aaa565b03610e7c57600254600454610e7c916001600160a01b03918216911630866113a2565b836001600160a01b03167f6202e363b9b07bd49964490f5cd955af47c94fffc29054855e24d451a753851a8385604051610eb7929190611ac0565b60405180910390a250505050565b6001600160a01b0382161580610ee257506001600160a01b038116155b15610f005760405163a4ab1dcd60e01b815260040160405180910390fd5b6001600160a01b0391821660009081526001602081815260408084209490951683529290925291909120805460ff19169091179055565b6001600160a01b0382161580610f5457506001600160a01b038116155b15610f725760405163043be43f60e01b815260040160405180910390fd5b6000806000846001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff1615151515815260200160078201548152505090506000806000846001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581526020016007820154815250509050806040015160001415806110b05750805115155b806110be5750602081015115155b806110cc5750606081015115155b156110ea5760405163c1d323ed60e01b815260040160405180910390fd5b62093a808260e00151426110fe9190611a75565b10156111325760e08201516111169062093a8061199a565b60405163d4cd8f2760e01b815260040161030591815260200190565b6060808301805191830191909152602080840180519184019190915283518352604080850180519185019190915260a0808601519085015260808086018051918601919091524260e086015260c0808701511515908601526000938490529183905282855291909152601354905164e8d4a51000916111b0916119f7565b6111ba9190611a24565b60a08301526111c8836115c4565b6111d184611651565b8051602080830151604080850151606080870151835196875294860193909352908401528201526001600160a01b0380851691908616907f9597f0abe4316dbfe1d1e611882aa3d81c68ce2f656f57f4e8f8e1466df4c3519060800160405180910390a350505050565b6001600160a01b03811660009081526020819052604081209061125d83610b9e565b90508060000361126c57505050565b61127883826001610dbb565b60028201805482019055601354600483015464e8d4a510009161129a916119f7565b6112a49190611a24565b8260050181905550505050565b6001600160a01b0381166000908152602081905260408120600181015490918190036112dc57505050565b600060018301819055601080548390039055825482018355600f8054830190558254906113088261178e565b90506000606461131883866119f7565b6113229190611a24565b600486018054820181556012805483019055601354905491925064e8d4a510009161134d91906119f7565b6113579190611a24565b60058601556040518481526001600160a01b038716907f1880525dde3f6a2ef99272f9115bbb8be6294ac6f03fd37cde2a17be662af5389060200160405180910390a2505050505050565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390528516906323b872dd906064016020604051808303816000875af11580156113f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141d9190611a88565b6108b657600080fd5b60008183106114355781610be7565b5090919050565b6001600160a01b0382166000908152602081905260409020805482111561147657604051631e465c3960e01b815260040160405180910390fd5b600061148184610b9e565b90508015611492576114928461123b565b60006114a1836000015461178e565b9050600060646114b183876119f7565b6114bb9190611a24565b600f80548790039055845486900385556004850180548290038155601280548390039055601354905491925064e8d4a51000916114f891906119f7565b6115029190611a24565b8460050181905550505050505050565b6005546000901561153b576005546000906127109061153190856119f7565b610be79190611a24565b506000919050565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b69190611a88565b6115bf57600080fd5b505050565b6001600160a01b0381166000908152600d6020526040812054900361031757600c546115f190600161199a565b6001600160a01b0382166000818152600d6020526040812092909255600c805460018101825592527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c790910180546001600160a01b031916909117905550565b6001600160a01b0381166000908152600d602052604081205490819003611676575050565b6000611683600183611a75565b600c5490915060009061169890600190611a75565b9050808214611737576000600c60000182815481106116b9576116b9611a46565b600091825260209091200154600c80546001600160a01b0390921692508291859081106116e8576116e8611a46565b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905561171c83600161199a565b6001600160a01b039091166000908152600d60205260409020555b600c80548061174857611748611aec565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03959095168152600d9094525050604082209190915550565b600060015b6007548110156118055760078054829081106117b1576117b1611a46565b90600052602060002001548310156117f35760086117d0600183611a75565b815481106117e0576117e0611a46565b9060005260206000200154915050919050565b806117fd81611a5c565b915050611793565b506008805461181690600190611a75565b8154811061182657611826611a46565b90600052602060002001549050919050565b60006020828403121561184a57600080fd5b81356001600160a01b0381168114610be757600080fd5b60006020828403121561187357600080fd5b5035919050565b600081518084526020808501945080840160005b838110156118aa5781518752958201959082019060010161188e565b509495945050505050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c0608082018190526000906118f09083018561187a565b82810360a0840152611902818561187a565b9998505050505050505050565b600060208083528351808285015260005b8181101561193c57858101830151858201604001528201611920565b506000604082860101526040601f19601f8301168501019250505092915050565b6020808252600d908201526c2737ba103a34329037bbb732b960991b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b9857610b98611984565b60008060008060008060c087890312156119c657600080fd5b865195506020870151945060408701519350606087015192506080870151915060a087015190509295509295509295565b8082028115828204841417610b9857610b98611984565b634e487b7160e01b600052601260045260246000fd5b600082611a4157634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201611a6e57611a6e611984565b5060010190565b81810381811115610b9857610b98611984565b600060208284031215611a9a57600080fd5b81518015158114610be757600080fd5b634e487b7160e01b600052602160045260246000fd5b6040810160038410611ae257634e487b7160e01b600052602160045260246000fd5b9281526020015290565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220fde912d0e0aa995621070d36a72dc943288c3c67a260f5875f18ed0c571c2aa464736f6c634300081300330000000000000000000000005870357dfa6a11d3fe45d775c21ed9ae60ac4bef0000000000000000000000005870357dfa6a11d3fe45d775c21ed9ae60ac4bef00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000003ae21765556c071c5bc9cea5dc91e9f01056dea20000000000000000000000009be357bd175ba6b40ac20177b237ec6641e98851000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000021e19e0c9bab2400000000000000000000000000000000000000000000000000a968163f0a57b4000000000000000000000000000000000000000000000000034f086f3b33b684000000000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000410000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000064