You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have been looking a for a function that tracks all value mints and burns and can tell me the total "value" distributed among all tokens in a slot. Has this been brought up already? Anything that contradicts that idea on ERC3525?
The text was updated successfully, but these errors were encountered:
In some cases, the meaning of the value is different at different SLOT. It is not suitable as a uniform interface in the EIP Spec. If needed, here is a demo implementation by the functions in the ERC3525SlotEnumerable.
function totalSupply() externalreturnsuint256 {
uint256 count =slotCount();
uint256 total =0;
for (uint256 index =0; index < count; index++) {
uint256 slot = slotByIndex (index);
uint256 slotSupply =tokenSupplyInSlot(slot);
total = total + slotSupply;
}
return total;
}
Have been looking a for a function that tracks all value mints and burns and can tell me the total "value" distributed among all tokens in a slot. Has this been brought up already? Anything that contradicts that idea on ERC3525?
The text was updated successfully, but these errors were encountered: