UDT Payment Solutions

Ok, let me type down a couple more issues of working directly with NervosDAO:

  • Deposits are basically NFTs (it would require explicit user consent in the inteface for withdrawing from a particular deposit)
  • Depost lock cannot be changed without additionally requesting their withdrawal
  • It’s tricky to add withdrawal requests as last part of a tx (cause input deposit and output withdrawal request cell must have the same index)
  • A transaction involving NervosDAO can have at most 64 outputs

All these little issues (+ DoS) make a bit cumbersome working directly with NervosDAO deposits.

An instant service idea for iCKB

I’ll try to see if I can create some instant conversion service directly integrated with the iCKB bot, issue is usually partial matching tho :thinking:

Interestingly enough, iCKB Limit Order can be Dual Ratio Limit Orders, so basically they can Provide Liquidity to whoever matches them in both directions, similar to AMM, just the price is fixed.

If the bot keeps its funds in these Dual Ratio LO (as I initially foreseen). With high enough fees, price drifting over time between iCKB and CKB should not create issues.

We can achieve exactly the instant conversion service for iCKB:

  1. User needs some small liquidity (either iCKB to CKB or CKB to iCKB )
  2. Bot(s) already has on-chain funds wrapped in Dual Ratio LO
  3. User signs his transaction converting some liquidity using bot LO

Downsides to what’s currently offered in iCKB:

  • Fees will be much higher to offset iCKB/CKB price drift over time, if bot has no activity for a period of time.
  • Only funds actually in the Dual Ratio LO are available (1M iCKB will not be instant).
  • LO state contention may require user to resign transaction (currently unlikely tho)
  • It needs some integration in CCC, similarly to the service presented in this proposal.

I guess we’ll see :grin:

Phroi %42

2 Likes