You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I want to build the simplest possible DEX aggregator which will use only 2 DEXes. There will be 3 applications (aggregator, DEX1, DEX2) that will take 3*2=6 resources. And 4 assets (asset A, asset B, LP token 1, LP token 2). It will be 10 in total, more than it is currently possible.
Even if the issue (2) will be fixed, it is still easy to exhaust available resources. My aggregator would take "only" 7 resources. But what if I want e.g. to aggregate 3 DEXes? It will be impossible.
Solution
To make it possible to build "normal" EVM chains like DeFi ecosystem, it is paramount to raise MaxAppTotalTxnReferences to at least 32 together with fixing the issue (2) and raising MaxAppTxnForeignApps and MaxAppTxnForeignAssets to at least 16.
I have no idea how complicated this is, but the natural first step would be to increase MaxAppTxnForeignApps to 16 which will be far from perfect, but much better than the current state. I believe most DeFi applications will be able to work under such conditions (given that issue (2) is fixed).
Urgency
I am building a pretty simple app and already being severely blocked by this problem, I think that a lot of people will stumble upon it in the next few months.
The text was updated successfully, but these errors were encountered:
Hi, we are taking a different approach to solving this problem - we will allow the references to be shared across the transaction group. See #4391 for this upcoming work.
Problem
I am trying to build composable DeFi on Algorand.
Currently, there are 2 things that make it next to impossible.
Why is it so limiting?
Suppose I want to build the simplest possible DEX aggregator which will use only 2 DEXes. There will be 3 applications (aggregator, DEX1, DEX2) that will take 3*2=6 resources. And 4 assets (asset A, asset B, LP token 1, LP token 2). It will be 10 in total, more than it is currently possible.
Even if the issue (2) will be fixed, it is still easy to exhaust available resources. My aggregator would take "only" 7 resources. But what if I want e.g. to aggregate 3 DEXes? It will be impossible.
Solution
To make it possible to build "normal" EVM chains like DeFi ecosystem, it is paramount to raise
MaxAppTotalTxnReferences
to at least 32 together with fixing the issue (2) and raisingMaxAppTxnForeignApps
andMaxAppTxnForeignAssets
to at least 16.I have no idea how complicated this is, but the natural first step would be to increase
MaxAppTxnForeignApps
to 16 which will be far from perfect, but much better than the current state. I believe most DeFi applications will be able to work under such conditions (given that issue (2) is fixed).Urgency
I am building a pretty simple app and already being severely blocked by this problem, I think that a lot of people will stumble upon it in the next few months.
The text was updated successfully, but these errors were encountered: