VidPool - Flat Payments: Percentage-based payment engine
Design
type DelegationState struct {
// Start is a block when this delegation state became valid.
// If there was a previous DelegationState then current Start is equal
// to previous End+1
Start *big.Int
// End is the last block when this delegation was valid.
End *big.Int
// Amount is a total amount of all delegations.
Amount *big.Int
// List of delegation for each delegator.
Delegations []Delegation
}
type Delegation struct {
Address common.Address
Amount *big.Int
}How to use
Last updated
