Golos dApp v2.0.1 Release Notes
Golos dApp v2.0.1 Release Notes
Version v2.0.1 contains changes to eliminate the problem appearing after changing a rewards curve when paying funds to authors and curators for posts.
Problem description
There is a special pool in the golos.publication
smart contract for payment of rewards to authors and curators. Rewards for posts are paid in accordance with the specified function — the rewards curve. After a recent change of this curve, golos.publication
contract began to use all the funds that were on its balance sheet for the new rewards pool.
As a result, there was a discrepancy between amount of funds on the contract balance and amount of funds that were distributed between the old and new pools of rewards with the specified function.
Solution to the problem
The reason for such behavior of the contract was incorrectly specified accuracy of rewards calculation in formed transactions. The @golosio team fixed transaction formation to change the curve for calculating rewards. In addition, this team added a check for accuracy to the setrules
action. However, these fixes did not resolve the problem completely. It was also required to balance the pools within the contract.
To finally fix the problem the new action syncpool
was added to the golos.publication
contract. This action redistributes the funds available on the golos.publication
balance sheet between existing reward pools. Redistribution is performed taking into account the total rshares
of all posts located in these pools.
Note: the syncpool
action can be performed only by application leaders.
The bugs fixed in version v2.0.1
#917 Implemented action to sync funds with balance**
The syncpool()
method has been added to the golos.publication
contract for redistributing the funds between existing reward pools. This method includes two actions: the first one is removes pool with empty shares, if there are more than one pool and the second one is synchronize pool balance
#919 Fixed calculation of the number of messages in the rewardpool on delete a post/comment
Bug description
The number of messages to a post was incorrect in the reward pool in case a post or comment were deleted.
Bug fixed
The calculation of messages in the rewards pool has been modified taking into account deleting a post or comment.
#907 Implementation of addpin/addblock actions in golos.social contract
New feature
New methods addpin
and addblock
have been added to golos.social
contract. The blacklist and subscription were stored inside the contracts at request of the application leaders. These new methods will be used to fill in the missing blacklist entries and user subscriptions.
#893 Implementation of addpermlink/delpermlink actions
Bug description
The contract golos.publication
did not have access to information about posts closed before transit and, accordingly, commenting on such posts was impossible.
Bug fixed
New methods addpermlink
and delpermlink
have been implemented in golos.publication
for adding information about closed posts.
#902 The action golos.vesting:create checks the notify_acc
New feature
Authority granted to contracts, so that the site golos.io
will be able to fill in the missing information in the contract tables independently, without the need to approve each transaction by application leaders.
The golos.io
website now given the opportunity to invoke the following actions:
- in the contract
golos.publication
:addpermlink
,addpermlinks
,delpermlink
,delpermlinks
- in the contract
golos.social
:addpin
addblock