Explainer; Fixed Forex Swap Function

TL;DR

This post explores explains how the AMM hosted at Fixed Forex currently works. Includes sections on;

  • Why does the swapping function only accept certain assets?
  • Assets accepted for swaps in?
  • Assets offered for swaps out?
  • How the AMM is funded? Where does liquidity come from?
  • Why can’t users swap between ib stablecoins?
  • Does the AMM collect fees for vested KP3R holders?
  • Alternatives to using the Fixed Forex AMM
  • Reporting Issues or Errors when using the AMM
  • Directions for additional questions or queries

Any member of the team or community is free to suggest additions, corrections or updates.


Why does the swapping function only accept certain assets?

This is a decision taken by the Keep3r team, due to the AMM being a limited asset AMM. The contracts utilized by the AMM they are available to view here;

Assets accepted for swaps in (get ib token out)?

Currently accepted assets for swapping from USD stables to ib tokens are;

  • DAI
  • sUSD

Why these two stables? Because;

  • DAI

    • is also an over collateralized stable (like ib tokens) that is time tested
    • it also has the benefit of being an accepted form of collateral on Iron Bank, with a collateral ratio of 90%. Meaning that it can be used by Keep3r to prove credit worthiness with Iron Bank, if necessary
  • sUSD

    • Allows atomic swaps between Synthetix stables (i.e. sUSD to sEUR, etc) as of SIP-120 & the further improvements introduced with SIP-198
    • Non-USD Synthetix stables can be easily swapped for ib tokens via the pools on Curve

Assets offered for swaps out (give ib tokens, get USD stable)?

Currently accepted assets for swaps from ib tokens to USD stable allows;

  • MIM
  • sUSD (for ibEUR swap only)

Why these stables? Because;

Note;

  • Keep3r treasury previously allowed swaps from MIM to ib tokens, therefore during this period were able to amass a large reserve that could then be offered for outbound swaps; ib token to MIM.
  • In order to acquire MIM via inbound route, the AMM had to borrow an equal value of ib stable tokens from the Iron Bank (the majority of which has now been paid back, see note on outstanding borrows - link below).
  • The AMM can only make further loans from the Iron Bank when it either has enough assets to offer a sufficent amount of collateral to meet the conditions for the loan, or it qualifies in meeting the conditions to be granted an uncollateralized loan.
  • MIM recieved during this period was deposited into MIM+3CRV with the LP token deposited with Convex so that treasury could gain benefits from farming the position.

*Funds available for swaps out of ib stablecoin tokens;

  • For MIM to be available for users to swap to (from ib tokens) then the Keep3r team has to have MIM available, and must then transfer the funds to the AMM contract.

  • Note, if not enough funds available then this functionality for swapping out will be unavailable & any users attempting to swap will receive an error message.

  • Current funds available in the contract can be viewed on the etherscan page for the contract address or via the same link shared below that details level of borrows on the AMM contract.

How the AMM is currently funded? Where does the liquidity come from?

Liquidity in the AMM comes from two sources;

  1. USD inbound funds that are provided by users that want to acquire ib stablecoin tokens, when received these assets are held in the Keep3r treasury
  2. ib tokens offered for swaps are borrowed by the AMM from Iron Bank as a loan

Iron Bank allows the following;

  • Protocols can borrow via uncollateralized credit facility if whitelisted, the AMM is such a whitelisted protocol

Keep3r loaned value;

  • Level of outstanding borrow can be viewed here - Iron Bank having considered Keep3r credit worthy to borrow at these levels
  • This means any ib stables that the AMM allows as an outbound swap (i.e. user received ib tokens) are borrowed by Keep3r via the AMM to provide to users
  • The Keep3r treasury can repay these loans or service this debt via assets received through the AMM

Why can’t users swap between ib tokens?

Functionality isn’t currently live, or enabled via the AMM. It would require the Keep3r treasury to have access to a deep pool of ib tokens on-hand ready to swap.

Does the AMM collect fees for vested KP3R holders?

No, the AMM does not currently collect fees for distribution to vested KP3R token holders but does have the potential to do so in future.

Alternatives available to AMM?

If users are unable to utilize the Fixed Forex AMM to swap then alternatives are available. Deepest liquidity for ib stablecoin tokens can be found on Curve where there are pools for each ib stablecoin paired with USDC

Alternatively curve pools for ib stablecoin & Synthetix stable assets pairs can be used to swap ib stables to their synth twin. Swaps between synth stables are now integrated with 1inch via synthetix atomic swap feature

How to report errors experienced when using the AMM?

Users should post any errors or issues to the Fixed Forex support thread


Directions for additional questions or queries

Please use the comments section below to add any questions or queries regarding ib stable tokens, their mechanisms and how to access them.

2 Likes

None is willing to buy the ib-assets at their real price, this will only get worse when the rewards for the pools goes down.
It is impossible to exit the ib-tokens since there is no liquidity and the people that have originally minted them have gone away from defi and does not want to earn the arbitrage-fees from closing their loans.

I am stuck with ib-tokens and will never be able to get them out for their real value :sob::sob::sob:

As of right now, today, the vast majority of borrowed funds from Iron Bank are actually loans Keep3r took out;

ibCHF 14.5 borrowed total on Iron Bank, 14.4 by keep3r
ibKRW 4.65 borrowed, 2.3 by keep3r
ibGBP 5.16, 4.8 by keep3r
ibJPY 3.19, 2.65 by keep3r
ibEUR 12.3, 11.2 by keep3r
ibAUD 3.8, 3 by keep3r

All in millions, USD value

Yes, but why dont they pay them back when ib*** is so much cheaper compared to the opposite tokens of the pool?
Will there every be a reason for Iron Bank to pay the loans back?

None wants to hold these ib*** tokens if it’s impossible to change them for other tokens or real money, then they have no purpose.

This has been happening, you can check that on the multisig wallet address

Iron Bank isn’t the party borrowing, it’s the Keep3r team borrowing from Iron Bank. So this is incorrect.

It’s also worth mentioning, again, that primary use case of ibXXX today is liquidity mining opportunities, and as the protocol develops further more use cases should emerge. It’d indicated on the fixed forex site upon entry. Convertibility to assets paired with ibXXX is available to sEUR, agEUR and USDC currently, so would advise looking for balance of pools to time opportunity to exit, if this is desired

1 Like

There will be no further development of the protocol if people does not dare to hold the tokens, right now there is 0 liquidity to exit for almost all of the liquidity with “s*** ag*** or USDC”.

If holding peg is not made the number 1 priority, none will ever buy the tokens and therefore no further development will be made.

Why dont Keep3r buy back the tokens and repay their loans? It should surely be benficial to them with this cheap price for the tokens.

Comment is in the wrong thread since it has nothing to do with this explainer.

There is a discussion about peg maintenance here - feel free to join in with suggestions & ideas. The more well-researched the better.

Okay I will hold doge peg for 5 months. Is that okay by the team

Yes that is okay