# Gas Reimbursement for TrueFi Migrations (Uniswap to SushiSwap and TrueFi V1 to V2)

**URL:** https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280
**Category:** Proposals
**Created:** [February 9, 2021, 8:33am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280 "2021-02-09T08:33:46Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![leecrowhurst](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/leecrowhurst/32/12_2.png) [@leecrowhurst](https://forum.truefi.io/u/leecrowhurst)
#### Post date: [February 9, 2021, 8:33am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/1 "2021-02-09T08:33:46Z")

</div>

**Summary**  
_This proposal aims to allocate up to X TRU/weekly to the reimbursement of gas costs for users migrating from TrueFi V1 to V2 and/or moving out of the Uniswap TRU/ETH pool to SushiSwap._

**Background**  
After the team shared their plans to move our TRU incentives from Uniswap to Sushiswap, community members including myself expressed concern (see Discord links below) that prohibitively high gas fees would be a blocker to a smooth migration. This same concern applies to the teams upcoming migration from TrueFi V1 to TrueFiV2. Lenders, Stakers, and LPs should not spend more than what they are making in order to migrate.

- Discord Link 1: [Discord](https://discord.com/channels/768936623684714517/774076405003845633/803321019200176211)
- Discord Link 2: [Discord](https://discord.com/channels/768936623684714517/774076405003845633/803323321101058079)
- Discord Link 3: [Discord](https://discord.com/channels/768936623684714517/774076405003845633/803334939717533726)

**Motivation**  
Gas costs as of late have been a hindrance to TRU Lenders, Stakers, and LPs. The team are keeping an eye on the various scaling solutions being tested by leading DeFi projects and will act when there is a clear winner (Optimism vs ZK-Rollups vs AVAX, etc). Until then, they need to make migrating a simple decision for TrueFi users by subsidising gas costs related to migrating from Uniswap to Sushiswap as well as TrueFi V1 to TrueFI V2.

**Specification**  
Reimbursements would be made in TRU, while gas is priced in terms of ETH, so a conversion is required. The price oracle would be CoinGecko’s API, with the median TRU/ETH price from the week being used for all that week’s reimbursements.

Claims would be made available via the same MerkleRedeem contract currently used in the liquidity mining program. Reimbursements and liquidity mining proceeds for the week would be summed and be claimable in a single transaction.

**Poll**  
To keep this simple, please vote on just 2 options:

_Poll ([view on site](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/1))_

Thank you for reading and voting!

---

<div class="post-metadata">

### Author: ![rafaelcosman](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/rafaelcosman/32/4_2.png) [@rafaelcosman](https://forum.truefi.io/u/rafaelcosman)
#### Post date: [February 9, 2021, 1:52pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/2 "2021-02-09T13:52:47Z")

</div>

@leecrowhurst - this seems like a pretty reasonable proposal to me. Not sure how technically we would implement this though, because I don’t think there’s any way for a smart contract to see if your address has made the migration (smart contracts can’t see blockchain events).

We would probably need to manually send out the TRU but that might end up being a lot of work depending on how many LPs there are. Not sure what to do here, would love to hear proposals.

Am open to extending the Uniswap farm until this is figured out if folks would prefer that.

---

<div class="post-metadata">

### Author: ![leecrowhurst](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/leecrowhurst/32/12_2.png) [@leecrowhurst](https://forum.truefi.io/u/leecrowhurst)
#### Post date: [February 9, 2021, 2:16pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/3 "2021-02-09T14:16:41Z")

</div>

Thanks for the feedback Rafael!

I know tools like [https://apy.vision/](https://apy.vision/) shows a log of your interactions with the Uniswap pool:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/truefi/original/1X/fecc087814701c4174ec822beefe77d012ff835f.jpeg)

and it looks like they support SushiSwap too

 ![image](https://us1.discourse-cdn.com/flex016/uploads/truefi/original/1X/b03e52c0510db7aa8324bca9bed6738a3d143b44.png)

So if you know the ETH wallet address, could you guys run similar code to see if the wallet was in the Uniswap pool between certain dates, existed on x date, entered the SushiSwap pool on y date, and those exit and enter transactions cost z amount of ETH? There will also be the gas cost to exit then renter the TrueFi farms too?

---

<div class="post-metadata">

### Author: ![benjamincosman](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@benjamincosman](https://forum.truefi.io/u/benjamincosman)
#### Post date: [February 9, 2021, 3:35pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/4 "2021-02-09T15:35:04Z")

</div>

I would rather the team spend their time and resources on improving the protocol. I’m pretty sure that would be better for the protocol as a whole, and to the extent that improvements get reflected in an increased value of my TRU, it’s probably _also_ worth more to me personally than a gas reimbursement. Unlike the TFI-LP bug reimbursements, I also think that we aren’t particularly _owed_ reimbursements in this case - this change feels to me more like the kind of thing we signed up for. (I recognize that people farming a smaller amount are getting hurt more by the fixed gas costs, so I won’t be working to convince anyone else to vote No.)

---

<div class="post-metadata">

### Author: ![Raccoon](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/raccoon/32/89_2.png) [@Raccoon](https://forum.truefi.io/u/Raccoon)
#### Post date: [February 9, 2021, 3:53pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/5 "2021-02-09T15:53:57Z")

</div>

Staking TRU in loan is also suffering from high gas cost.

---

<div class="post-metadata">

### Author: ![rafaelcosman](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/rafaelcosman/32/4_2.png) [@rafaelcosman](https://forum.truefi.io/u/rafaelcosman)
#### Post date: [February 10, 2021, 2:03am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/6 "2021-02-10T02:03:24Z")

</div>

I actually agree with @benjamincosman that, while this is a nice-to-have, **if it will take significant resources then it would be better to focus on [our roadmap](https://blog.trusttoken.com/the-truefi-protocol-roadmap-92f388ac6eb3)** and make all the farmers money by helping TRU to be successful. If it was free or very low cost in terms of eng time then I would still do it.

We do need to be willing to say no to things that could distract from the long-term, or other projects could outpace us.

---

<div class="post-metadata">

### Author: ![michael.bland](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@michael.bland](https://forum.truefi.io/u/michael.bland)
#### Post date: [February 10, 2021, 2:45am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/7 "2021-02-10T02:45:50Z")

</div>

One option could be to simply log the reimbursements now and pay out the reimbursements later on once some of the higher value eng items have been completed.

---

<div class="post-metadata">

### Author: ![ryan.rodenbaugh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/ryan.rodenbaugh/32/38_2.png) [@ryan.rodenbaugh](https://forum.truefi.io/u/ryan.rodenbaugh)
#### Post date: [February 10, 2021, 9:44am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/8 "2021-02-10T09:44:35Z")

</div>

I asked one of our developers how long it might actually take to do this. I also posted in the Sushiswap Discord to see if any other teams have done this and have existing code we might be able to fork and/or modify

 ![image](https://us1.discourse-cdn.com/flex016/uploads/truefi/original/1X/11654073f398db18db12e5eb55b94f6648f3b384.png)

---

<div class="post-metadata">

### Author: ![rafaelcosman](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/rafaelcosman/32/4_2.png) [@rafaelcosman](https://forum.truefi.io/u/rafaelcosman)
#### Post date: [February 10, 2021, 8:56pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/9 "2021-02-10T20:56:46Z")

</div>

Maybe this is something that the Sushi team would be willing to handle for us? We pay the TRU for it, but they handle the distribution. They have an interest in supporting migration anyway!

---

<div class="post-metadata">

### Author: ![Getty](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/getty/32/45_2.png) [@Getty](https://forum.truefi.io/u/Getty)
#### Post date: [February 10, 2021, 10:02pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/10 "2021-02-10T22:02:17Z")

</div>

I think reimbursing users for the migration costs is more effort than it is worth. How many users are we talking about in reality, likely somewhere between 30-200. The easier thing would be to juice the rewards for the first week but I don’t think it is worth the hassle.

---

<div class="post-metadata">

### Author: ![ryan.rodenbaugh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/ryan.rodenbaugh/32/38_2.png) [@ryan.rodenbaugh](https://forum.truefi.io/u/ryan.rodenbaugh)
#### Post date: [February 11, 2021, 5:26am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/11 "2021-02-11T05:26:39Z")

</div>

Hearing both sides of this throughout the conversation. It’s both:

1. A great show of faith and convenient for our users, specifically smaller users which would be forced to pay high gas costs
2. It’s probably not valuable enough to justify diverting engineering resources. I’m directly in touch with the Sushi team now and asking what we can do

---

<div class="post-metadata">

### Author: ![leecrowhurst](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/leecrowhurst/32/12_2.png) [@leecrowhurst](https://forum.truefi.io/u/leecrowhurst)
#### Post date: [February 11, 2021, 8:20am UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/12 "2021-02-11T08:20:28Z")

</div>

Thank you to everyone that has voted and commented.

Some really good points made so far… please keep them coming.

Lots of comments around diverting dev time to “build” this. Could the same result be achieved without the need to build/code functionality to do it? As this will be 2, 1 off events in the history of TrueFi - could this be managed via a simple “offline” method?

---

<div class="post-metadata">

### Author: ![tshields9](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/tshields9/32/306_2.png) [@tshields9](https://forum.truefi.io/u/tshields9)
#### Post date: [February 13, 2021, 6:48pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/13 "2021-02-13T18:48:18Z")

</div>

My personal opinion is that I don’t want to spend one minute of the team’s time on this. We should be focused on long-term success, not one-time short-term blips like this.

---

<div class="post-metadata">

### Author: ![Kia](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@Kia](https://forum.truefi.io/u/Kia)
#### Post date: [February 13, 2021, 9:25pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/14 "2021-02-13T21:25:03Z")

</div>

The reason for me voting no is to make sure team is focused on other big things. But I agree to help small investors in any way. If the question was whether to work on this now or later, I would have voted for later later.

---

<div class="post-metadata">

### Author: ![hal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/hal/32/228_2.png) [@hal](https://forum.truefi.io/u/hal)
#### Post date: [February 17, 2021, 6:02pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/15 "2021-02-17T18:02:52Z")

</div>

If we were to put dev time into this, it would be in the form of a “migrate” button for both farms, which could include gas reimbursement. It would go something like:

1. Migrate ETH/TRU to Sushiswap

2. Migrate TUSD/TFI-LP to TrueFi

This way, it’s easy for people to migrate all their liquidity in one transaction, rather than doing all those steps individually (and potentially moving liquidity elsewhere). Just depends on how much dev work it will take and scope of security audits.

---

<div class="post-metadata">

### Author: ![spidey](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@spidey](https://forum.truefi.io/u/spidey)
#### Post date: [February 20, 2021, 6:31pm UTC](https://forum.truefi.io/t/gas-reimbursement-for-truefi-migrations-uniswap-to-sushiswap-and-truefi-v1-to-v2/280/16 "2021-02-20T18:31:06Z")

</div>

I think @hal , don’t spend too much dev time on this. Something quick and sightly more cost effective is enough.
