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
However, tezWrapper%transfer is the entrypoint most commonly used by Checker and its gas costs are still pretty high. In general, several Checker entrypoints become significantly more expensive when Checker has to go through the tez wrapper (data from #269 (comment)):
One of the ways in which #269 reduces the gas costs for calling the tez wrapper's entrypoints is by avoiding indirect calls when a vault has already been originated. However, this makes the average case cheaper, but not the first time someone interacts with their tez-wrapper account (or a burrow does, for that matter). This for example means that checker%create_burrow might always be a little expensive to call, since it needs to originate a new burrow contract and a new vault needs to be originated for that burrow, to hold its collateral. However, for most of the entrypoints I expect the average call to be cheaper than the first call. Extending our end-to-end tests might give us more information about this.
Another thing I am wondering about is what gas cost would be acceptable for entrypoints such as checker%deposit_collateral or checker%withdraw_collateral.
#269 reduces the gas costs of the tez wrapper significantly (data from #269 (comment)):
However,
tezWrapper%transfer
is the entrypoint most commonly used by Checker and its gas costs are still pretty high. In general, several Checker entrypoints become significantly more expensive when Checker has to go through the tez wrapper (data from #269 (comment)):We should investigate ways to reduce these costs as much as possible, lest interacting with burrows becomes too unattractive.
The text was updated successfully, but these errors were encountered: