tezos-checker / checker

An in-development "robocoin" system for the Tezos blockchain
25 stars 16 forks source link

Tickets to FA2 migration #84

Closed utdemir closed 3 years ago

utdemir commented 3 years ago

Currently we are using tickets to implement some of the token and token-like entities in checker. These are:

We have decided to provide a FA2 interface instead. However, we can simplify some of the ones above so that they neither require tickets nor FA2. The end result should look like:

Here are the details:

Kits and liquidity tokens:

They will have a standard FA2 based interface: https://gitlab.com/tzip/tzip/-/blob/master/proposals/tzip-12/implementing-fa2.md#multiple-fungible-tokens

Liquidation auction bids.

We should have a big_map from address to kit, the value being the amount they can claim back. Every time a new bid is made, the old bid moves to the map. The given address can then withdraw their kit. So, only losing bids are stored in the map.

If they are the winner of an auction, they will need to pass us an avl_ptr, then we can check if that is: a) a completed auction. and b) won by the sender.

Burrow permissions:

There are two possible ways to implement this.

Suggested roadmap:

This can be easily split into three parts that can be done indepdendently:

utdemir commented 3 years ago

I think this is done, and the parts we still have to do has issues (eg. #96). I'm closing this, but please do reopen if I'm missing something.