Added feature to easily distribute payments to leasers
The service will automatically collect leasers and their incomes, fees and MRT in a period from block from to block to (inclusive), and will give you easy to use (copy-pastable data for mass transfer in waves client) information to distribute payments to your leasers.
Basic usage: https://w8io.ru/{address_or_alias}/pay/{from}/{to}/{percent}
Raw data: https://w8io.ru/{address_or_alias}/pay/{from}/{to}/raw
Did you check also generation balance of node its self? Seems like presently you distribute whole % to lessors only and do not count node’s own balance.
I’d count nodes own generation balance at the time of block generation as part of whole stack to whom distribute rewards and don’t forget that you need to distinct nodes own balance which was acquired via transactions only (it transfer, exchange - which affect change in nodes balance excluding fees that are “magically” added to nodes balance).
класс!!! а можно автообновление ноды сделать? чтобы при каждом обновлении она сама обновлялась? чтобы не искать каждый раз и не беспокоить программеров
i still believe if you provide something you need to at least describe that it does provide user with not proper calculations because it does not incorporate nodes own balance if there is any. Just to let users know that information might be insufficient to use - in which extent node will lose money cause it will propose to distribute own portion to lessors.
Also i’d add an option to deduct from amount to be distributed fee of masstx so that there is enough cash on the node to actually do the transaction (otherwise if u try to distribute 100% and all generation balance is fully from lessors then you won’t have enough waves on balance to make distribution (if you are doing distribution for very recent block generated) and attempts to do masstx will just fail.)
i still believe if you provide something you need to at least describe that it does provide user with not proper calculations because it does not incorporate nodes own balance if there is any. Just to let users know that information might be insufficient to use - in which extent node will lose money cause it will propose to distribute own portion to lessors.
You are right, will be done.
Also i’d add an option to deduct from amount to be distributed fee of masstx so that there is enough cash on the node to actually do the transaction (otherwise if u try to distribute 100% and all generation balance is fully from lessors then you won’t have enough waves on balance to make distribution (if you are doing distribution for very recent block generated) and attempts to do masstx will just fail.)