$LAND token canister is draining 1T cycles about everyday. It causing lots of trouble in the community. I request someone help us to identity the potential issue. Is there a problem in the code or infrastructure or something else.
Below is the source code for the same. If you need further clarification kindly do reply.
I donβt see anything obvious. Have you tried to use the Motoko playground with some profiling enabled so you can get a flamegraph for different requests?
Also, how is your canister called? Do you have a UI that runs update calls every second or something like that? This could be similar to the heartbeat costs in that case
My guess is it only calls that once since it checks for result.canister and I am assuming let result = await router.get_token_contract_root_bucket({ witness=false; canister=pid; }); always returns something
That sounds like thereβs some heavy processing done per transaction then. Iβd suggest what Severin already mentioned, load this canister in the Motoko playground and try to get some more information where processing is happening.