Open gkaracha opened 3 years ago
Some more thoughts on this:
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 https://github.com/tezos-checker/checker/pull/269#issuecomment-944190808):
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 https://github.com/tezos-checker/checker/pull/269#issuecomment-944190808):We should investigate ways to reduce these costs as much as possible, lest interacting with burrows becomes too unattractive.