Replies: 2 comments 1 reply
-
Hi @trinitys7 thank you for opening up discussion. The headline and description are rather confusing. A few remarks tho:
edit: tho there is |
Beta Was this translation helpful? Give feedback.
-
As per the sig chain call, it is decided that the cross-currency payment feature is not needed, instead a more useful use case for osmosis dex integration would be to support USDC holder paying gas with USDC instead of AKT (which could be realized by something similar to the fee abs module) . Therefore, we'll close this discussion and open a new one to talk about ideas regard to the USDC gas payment feature. |
Beta Was this translation helpful? Give feedback.
-
AKT fee abstraction
Hi Akash Team. I'm Nguyen from Caelus Labs. We have idea about [Stable payments & Take rates]. It's related with
Phase 2 - Fast-follow
andPhase 3 - Bells and whistles
in this discusstion : https://github.com/orgs/akash-network/discussions/147(https://github.com/orgs/akash-network/discussions/147). We called it
AKT Fee abstraction
Context
Currently, Akash Network only allows the use of AKT tokens for its services. Users who hold tokens other than AKT need to swap their tokens for AKT if they want to use Akash services.
With
AKT fee abstraction
implementation, user can use IBC token for service fee in Akash Network. Module will swap IBC token via Osmosis automatically and dont't break current payment flow.The usecases that motivated the development of this module are:
AKT fee abstraction
.Otherwise, using fee abstraction promote the AKT trading volumn in DEX.
Prototype
Akash fee abstraction mechanism :
twap data
from osmosis by ibc-ing toasync-icq
module on Osmosis, thistwap data
will update the exchange rate of osmosis to customer chain's native token.escrow
andmarket
module.CreateBid
. When a userCreateLease
, the module calculates and converts IBC tokens to the needed amount for the bid. In this process we will use osmosis's Cross chain Swap (XCS) feature for converting token.DepositDeployment
msg), this amount will be automatically convert to token with denom specified when providerCreateBid
.Specification
1. Get price data from osmosis (this is on-chain data)
The exchange rate will be set by TWAP data from osmosis DEX via
async-icq
.This exchange rate will be used to calculate
EstimatedLeaseAmount
when user leasing byCreateLease
msg.2.Allow providers to use IBC token in their bid when
CreateBid
.Providers can choose a token for payment when they CreateBid. When a user creates a lease by
CreateLease
msg, the fee abstraction module calculates the IBC token needed bytwap data
:The module will convert the
EstimatedLeaseAmount
to the required bid by swapping this token via XCS. Once this is completed, we will have theFractionalPayment
with the bid token and process it the same way as the current process.3. Allow user deposit IBC token when
DepositDeployment
.If a user wants to
DepositDeployment
with IBC tokens, the module will first check if that token is allowed (allowed denom is a module parameter). Then, it will use Osmosis's Cross Chain Swap (XCS) feature to convert the IBC token to the required bid token (specified by the provider whenCreateBid
) via the Osmosis DEX.Essentially, the module transfers IBC tokens to the Osmosis Cross Chain Swap contract with a custom memo to swap the IBC token for the matched bid token, and then transfers them back to the escrow address in Akash Network.
Beta Was this translation helpful? Give feedback.
All reactions