Closed mudgen closed 2 years ago
getAvailableAlchemica is a fairly gas expensive function with multiple state reads. It is called within a loop in the claimAvailableAlchemica function here: https://github.com/aavegotchi/aavegotchi-realm-diamond/blob/cee38d37307c49dc41cdb737a962d5d313c1cd4f/contracts/RealmDiamond/facets/AlchemicaFacet.sol#L259
getAvailableAlchemica
claimAvailableAlchemica
It could be called once before the loop, though I see it might be a little difficult to integrate that code.
Good job.
getAvailableAlchemica
is a fairly gas expensive function with multiple state reads. It is called within a loop in theclaimAvailableAlchemica
function here: https://github.com/aavegotchi/aavegotchi-realm-diamond/blob/cee38d37307c49dc41cdb737a962d5d313c1cd4f/contracts/RealmDiamond/facets/AlchemicaFacet.sol#L259It could be called once before the loop, though I see it might be a little difficult to integrate that code.