My Defi adventure 6: Troubleshoot FTM undelegation on Fantom

https://pwawallet.fantom.network/#/dashboard


Why stake on Fantom?

The incentive of staking FTM by delegating to a validator on the network is for both staking reward (about 13%) and the usage of minted sFTM (the proof token for staking) as collateral to borrow fUSD. We can subsequently swap it for other synths eg. wFTM.
[Do note that fUSD is NOT pegged to USD, so it is often valued less than USD1 when you try swapping it for other stablecoins like fUSDT on Fantom.]

What is crypto staking? [External link]


I find that the entire interface of PWA wallet is not intuitive at all. I was kind of in a lost after connecting my wallet, and had to read a walkthrough before I managed to stake and finally get some fUSD. The reward for borrowing fUSD was pathetic, by the way.

For sFTM minted, you will be able to find it under Collateral Positions below and fUSD you will find it under Synths Positions on the fMint page.


The real hassle came when I wanted to reverse everything and undelegate my share of FTM tokens. I have wasted about 7 FTM in fees while trying to do so.

Speaking of thinking backwards, I have ruefully failed because I had assumed that a task reversal should be no-brainer. How wrong!


fUSD minting fee

The main culprit was my minting cost of 0.5 fUSD, which has a f*xx trailing decimal figures that was hidden on the interface. Minting cost (0.5%) will be added to the total sum of fUSD borrowed.

The biggest implication for undelegation is - if I do not repay fUSD in FULL amount, I cannot unlock the FULL amount of sFTM. 

When I don't have the FULL amount of unlocked sFTM, I will just keep seeing this darn alert "Can't repay sFTM, not enough unlocked sFTM". As such, the repay sFTM button will not appear. (Annoyingly, there is no such rule for partial repayment in the system.)



Initially I didn't know what went wrong. I have swapped some FTM for an exact 0.5 fUSD to make up the correct amount of fUSD for repayment (or so I thought) and proceeded to repay. Thereafter, I unlocked my sFTM which showed up on the Fantom wallet interface as a nice round figure of 500 sFTM. I went to the staking page and got slapped with the alerts above. I couldn't repay any sFTM to undelegate.


When a user interface sucks

Perplexed, I went back a step at the sFTM collateral page, thinking that I might have skipped doing something (yeah, stupidly I locked it up again). At that point I suddenly found something's amiss because my Synths Positions of fUSD was still there. So I clicked in and saw that the C-ratio was strange, not reflecting the "clean" >5000% (which should have been the case when a full repayment has been made).

I manually added all these tokens into my Metamask for them to show up. That was when I noticed that sFTM was showing 499.9xxx instead of 500 (my actual owed amount).


So I proceeded to swap some FTM to wFTM in order to use the fUNI pool to swap for a bit more fUSD.

Now I can repay the balance of 0.0xxxx fUSD to... finally... unlock my FULL amount of sFTM. AFter repayment of all the fUSD, it will no longer appear under my Synths Positions tab. As in the screenshot above, it will show Synths Positions (0).

If you are still with me to this part of the story, good job...

In a nutshell, I have completely forgotten that crypto counts in 18 decimal places!


The undelegation

As though by magic, the "Repay sFTM" button appeared.

And so did the "Undelegate" button thereafter - in glorious bright orange as though to celebrate my overcoming.

After panicking and perspiring through the whole repay-unlock-repay-undelegate episode, I have ended up wasting more FTM than earning from the staking. This is because each of these repayment and unlocking steps has 3 confirmation sub steps requiring gas fee. Annoyed.

Oh wait. 

There's still one last mega blast of annoyance for me - the unstaked FTM can only be withdrawn after a 7 days period


WTF. Really.


I shall take this as a lesson learnt and an experiment done on native FTM staking. Hopefully stakers who are facing the same issues can find resolution through my grousing here.


TLTR; Finding Nemo

  • You need to repay ALL minted fUSD (up to all its decimal places) in order to unlock sFTM collateral.
  • Minting fee is part of the borrowed fUSD sum. Ensure you have excess fUSD in wallet when you make the repayment to avoid leftover trailing decimal figures not repaid.
  • Unlock all your sFTM collateral under fMint page. Ensure the figure corresponds to your initial minted amount on your staking page.
  • Go to the staking page, repay total sFTM minted, claim your rewards.
  • The "Undelegate" orange button shows up. Click on it and wait for 7 days to unlock your staked FTM. 
  • Do note that any reward during the locked period will get burnt as penalty.


My takeaways

Bits of fUSD, a couple of wFTM and of course less FTM in my wallet to spend on game.  =.=

Earning interests on Geist or SCREAM would be of so much less stress and hassle. No more staking for me.


My previous Defi Adventure: Lessons from recent crypto crash


Earn 8% PA in interest by depositing on FTX Blockfolio. (Free crypto deposit and withdrawal.)

Download the mobile app now and use my referral code "rainbowonfi" for more rewards.



Like what you read?
Follow me on Facebook and Twitter for updates. Check out the side menu on my blog for more posts.

You can get fantastic sign up rewards for SAXO, Moomoo, Gemini, Celsius, Blockfi and more by using my referral here!

🤗


Comments

Popular posts from this blog

Rarity - my awakening to Defi gaming

Quick guide: How to on-ramp and off-ramp popular cryptocurrency CEX platforms