Hi everybody,
We're running a use case in Testnet of a certificate of deposit contract for Stellar classic assets.
In this use case we follow these steps:
1- Wrap a classic asset ABC
2- We use a simple deployer contract we made to deploy a new instance of the certificate contract for the asset ABC and initialize it.
This process seemed to work well initially but we noticed that it is unstable as we get some intermittent errors that are hard to track.
The error always happen when invoking the initialize function, at a step in which the admin approves the contract to access their funds.
Here is the exact line:
token_client.approve(&admin,&env.current_contract_address(), &allowance_amount, &expiration_ledger );
line 69
No matter the initialize parameters, assets and accounts we use in this process. Even when creating all from scratch, the behavior seems to be the same random chance of failure.
We also get the same errors through the CLI or using soroban-client on a frontend.
I'll share the response from the simulate and also the submit steps in the next message due to the size limit for the thread.
At first sight it doesn't seem to be hitting any resource limit or fee issue.
Does anyone have a suggestion on how we could investigate this further?