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
MBR calculation is currently being handled manually by the contract creators. This is a big pain point; if it can be addressed, it will abstract away a major pain point for all the developers utilizing Algorand to deploy contracts.
Solution
Introducing a utility function within the Algokit to automatically calculate the MBR amount so it can be passed through as a parameter to facilitate the payment. Possibly by incorporating simulate to figure out what the MBR cost would be prior to the contract, box creation, etc.
Proposal
Pros and Cons
Dependencies
The text was updated successfully, but these errors were encountered:
@neilcampbell Thinking about your recent experimentation around abstracting away covering fees for innerTxn calls (coverAppCallInnerTransactionFees), I wonder if this use case of needing to cover MBR could benefit from a similar abstraction provided by AlgorandClient.
Perhaps simulate could surface a deficit in the contract account and add in the requisite Pay txn to fund the account earlier in the atomic group?
@SilentRhetoric It's potentially do-able, however would require some experimentation.
I think there is also some potential here for an app to exploit such a feature.
For example if an app opted in to 1000 assets when it's called, that would trigger a 100 ALGO pay transaction to be attached to the group automatically. The app could then opt out of the assets it doesn't require and the balance is available to spend.
Problem
MBR calculation is currently being handled manually by the contract creators. This is a big pain point; if it can be addressed, it will abstract away a major pain point for all the developers utilizing Algorand to deploy contracts.
Solution
Introducing a utility function within the Algokit to automatically calculate the MBR amount so it can be passed through as a parameter to facilitate the payment. Possibly by incorporating simulate to figure out what the MBR cost would be prior to the contract, box creation, etc.
Proposal
Pros and Cons
Dependencies
The text was updated successfully, but these errors were encountered: