hackfisher / bitshares_snapshot

Libraries and Utilities for building DACs
The Unlicense
0 stars 1 forks source link

If ticket is(or not) a unit asset, how could we evaluate that in Lotto #17

Closed hackfisher closed 10 years ago

hackfisher commented 10 years ago

ticket should not be transferable, nor salable.

the cliam_ticket output amount should be the asset belong to that owner.

One user 10 lto to buy a ticket, then the value of the ticket before drawing is 10 lto. Then, he should with that, but this part of asset (as tickets) is not spendable.

this is guarantee by collect_inputs which only support claim_by_signature and claim_by_pts...

So any claim_ticket_input is a drawing trx, can should validate and make sure that the owner did get the jackpots.

hackfisher commented 10 years ago

ticket is not asset, it only output with ticket information, amount of that ticket is basic asset which used when bought.