-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metapool contract update needed due to increased deployment cost #21
Comments
We checked and the WASM size is 530,958 |
ok, looks like the new deploy_contract_cost_per_byte.execution is 64572944 ? |
Let me add the missing information.
Taking this information that you didn't have before into account, the formula is Regarding your WIP fix, I believe this should work but please test again after April 20. |
Thanks! |
@jakmeier can you tell us when Protocol version 53 will be deployed in mainnet? |
Sure! It is part of release 1.26, which is scheduled for Wednesday, May 18. Note that this is the date when validators start to upgrade their clients. It will take a couple more days until enough of them vote to actually used the new version for new blocks. When exactly that happens I cannot say, it's up to the validators. |
ok, thanks, we will upgrade the contract with the fixes today |
Deployment costs per byte of code are going to be increased by a factor of ~5 with this change to NEAR protocol: near/nearcore#6397
Probably this will happen with protocol version 53, which would be released on testnet by March 23 and on mainnet by April 20.
I listed all the indirect deployments from the past that would fail with the new cost. Deployments of
meta-pool.near
have showed up 10 times in this list, for example this transaction. Meaning that your current setup for redeploying might break with the planned increase of deployment cost.It looks like migration currently reserves exactly 20Tgas, as defined here.
meta-pool/metapool/src/lib.rs
Line 936 in c7a9405
Now, I don't know how large your contract is exactly, which is the key factor. 20Tgas is only enough to cover deployment of a 274kB contract under the new costs. And not all 20Tgas is actually available, some will be used for executing the function. So the real maximum contract size will be smaller.
Please check if my understanding is correct that this will break you remote-update mechanism and if you can update your deployed contract before the protocol version 53 is released. I am not familiar with all the details of your contract but I am happy to assist in solving any problems caused by this. I am also available to answer any questions you might have, for example on Zulip
The text was updated successfully, but these errors were encountered: