--- tags: Meetings --- # Streamr Bounty Contracts Repository Walkthrough - add link to juuso's thread - [github repo](https://github.com/streamr-dev/network-contracts/tree/develop/packages/smartcontracts/contracts) - BSCI Spec: https://hackmd.io/i8M8iFQLSIa9RbDn-d5Szg ## Bounty/Streamr Agreements - naming logic: - stream is the name for collection of data points about data delivered from procducers to consumers, in the sense that people can subscribe to the set of data points. - consumers want to sponsor specific streams, and so they put up a bounty for supplying the stream - Insolvency period is an event emitted when there is not enough sponsorship and the brokers can not earn - Factory for deployment of the bounty agreements is implemented - there is assembly code in [onTokenTransfer](https://github.com/streamr-dev/network-contracts/blob/develop/packages/smartcontracts/contracts/BrokerEconomics/Bounty.sol#L134) that parses call data depending on length hueristic - is this problematic? - state cycles according to the [getState() function](https://github.com/streamr-dev/network-contracts/blob/develop/packages/smartcontracts/contracts/BrokerEconomics/Bounty.sol#L90), corresponds to the diagram at the [bsci spec](https://hackmd.io/i8M8iFQLSIa9RbDn-d5Szg?view#Mechanisms) ### Policies - [policies repo link](https://github.com/streamr-dev/network-contracts/tree/develop/packages/smartcontracts/contracts/BrokerEconomics/policies) - [bounty repo link](https://github.com/streamr-dev/network-contracts/blob/develop/packages/smartcontracts/contracts/BrokerEconomics/Bounty.sol) ### Stake Weighted Allocation Policy - ## Testing - Allocation per second is for all the brokers together not per - Proportion of stake determines what each broker is owed