Axis-Fi / axis-core

Axis Protocol
https://axis.finance
Other
6 stars 1 forks source link

Auction House: Derivative Transformations #10

Closed Oighty closed 6 months ago

Oighty commented 9 months ago

Each Derivative has rules for when it can be redeemed or exercised. Outside of those rules, there isn't a way to "unwrap" or alter the derivatives. However, since the system is monolithic, it can use rules for each derivative to allow transformations between them that do not violate the rules.

The basic interface is to have a function on the AuctionHouse which users can call to transform their tokens into other derivatives while keeping the "rules" discussed above intact. It is anticipated that this will require a new type of module, called a Transformer that maps one Derivative type to another Derivative type and checks the required rules, returning a boolean on if the transformation is allowed. See the interface defined in design/ARCHITECTURE.md as well as the sequence diagram for this action.

Oighty commented 8 months ago

I'm debating whether it's worth the effort to add this feature. I don't think it will be used very much. @0xTex what are your thoughts?

Oighty commented 6 months ago

We removed transformations from the design as it was an edge-case functionality that didn't fit into current or projected product ideas.