A simple example

Let's walk through a simple example of a transaction on Delorean, from beginning to end.

Step 1: Alice locks tokens to sell future yield

Alice holds 500,000 GLP. She wants to get some upfront liquidity on these tokens, so she locks them into an Delorean position.

Specifically, she locks in the next 10 net present value of ETH into this position. This net present value is relative to the time she opens the position, and the nominal value amount sold. If the underlying GLP generates yield very fast, the nominal amount paid might be 10.1 ETH in just a few months. If the GLP is slow to generate yield, it nominal amount may come out to 12 ETH over the next year.

In exchange for locking the GLP, Alice receives a number of NPV tokens equal to net present value of her sold yield, which comes out to 10 NPV tokens.

However, Alice doesn't want NPV tokens. She wants ETH, so let's continue.

Step 2: Exchange NPV tokens for ETH

Alice takes her NPV tokens, and swaps them for ETH in an exchange like Uniswap.

A liquidity provider is market making on this pair, with his liquidity concentrated around 1 ETH per NPV token. The liquidity provider makes a profit from the swap fee.

Step 3: Bob buys NPV tokens so he can get future yield

Bob wants to buy future yield. However, he only has ETH in his wallet.

To buy future yield, Bob needs NPV tokens. Bob goes to the same liquidity pool that Alice used, and performs the opposite swap.

Bob has 5 NPV tokens now. He's ready for the next step.

Step 4: Bob buys the future yield

Bob takes his 5 NPV tokens, and swaps them for future yield in the Delorean pool. He gets a share of the future yield in the pool, which is shown below by the lime highlight.

Once Bob receives 5 net present value of ETH, relative to the time of his purchase, his position is closed, and he does not receive any more yield from the pool.

Just like the Alice's sale, the nominal value that Bob gets depends on how fast the underlying GLP generates yield. If it's fast, he might get 5.1 total ETH over a few months. If it's slow, he might get 6 total ETH over a year or so.

Step 5: Alice unlocks her tokens

Three month pass, and Alice's GLP has generated 5 ETH so far, equal to 4.9 net present value ETH relative to the time of her transaction. She still owes 5.1 net present value ETH. Rather than wait another few months, Alice wants to unlock her tokens now.

Alice close her position by paying 5.2 ETH into the pool, which comes out to 5.1 net present value ETH relative to when she made the initial sale.

She does this, and recovers her underlying 500,000 GLP tokens.

Last updated