What this does
This plug converts raw stored weights into percent shares across a set of token slots. It asks the caller for count, the number of weight slots to process. It runs whenever invoked, first summing every slot's weight from socket storage, then rewriting each slot as its weight times 100 divided by that total, rounded down. Done by hand or on a stale total, the written percents drift from the true proportions and misstate each slot's share.
Actions · 17

















Related plugs · 8