Update apwine.md

This commit is contained in:
bt3gl 2022-06-13 23:59:50 -07:00 committed by GitHub
parent c6b0143917
commit 5bf2e1c2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,3 +5,11 @@
* [Immunefi blog post](https://medium.com/immunefi/apwine-incorrect-check-of-delegations-bugfix-review-7e401a49c04f) * [Immunefi blog post](https://medium.com/immunefi/apwine-incorrect-check-of-delegations-bugfix-review-7e401a49c04f)
<br> <br>
* The APWine protocol can be used to tokenize future yields.
* APWine operates by storing Interest Bearing Tokens (IBT) or any other yield-bearing asset in a smart contract for a specified period of time and issuing Future Yield Tokens (FYT) in exchange.
* Bug: in the PT tokens, one condition wasnt checked during the burn of those tokens which could lead to the theft of the yield from the protocol after the two periods, i.e. 6 months. (The condition is a `if` on an not address(0), which is called by a burn method).
* The division of a yield-bearing asset into Principal Tokens (PTs) and Future Yield Tokens is the essential functionality of APWine. A users deposits to the protocol are represented by the PTs. At the start of each period, the APWine generates FYT from PTs in a 1:1 ratio.