Summary
This proposal aims to reduce gas consumption for Mars contracts on the Osmosis network.
Pinning Contracts
Contract binary “pinning” ensures the binaries listed in this proposal will always be loaded to memory on validator nodes. Since it is not necessary to load contracts from disk, gas consumption on calling these contracts is therefore reduced.
Contract binaries are not large in size, and the list of them is not extensive. Pinning these contracts will not significantly impact the memory usage of validator nodes and will reduce resource consumption (since those contracts are used frequently and have to be loaded to memory anyway).
Current Pins
Code ID | Team | Contract |
---|---|---|
561 | Mars | Red Bank |
562 | Mars | Credit Manager |
582 | Mars | Swapper |
Proposed Removals
Code ID | Team | Contract | Reason for removal |
---|---|---|---|
561 | Mars | Red Bank | Migration |
562 | Mars | Credit Manager | Migration |
582 | Mars | Swapper | Migration |
Proposed Additions
Code ID | Team | Contract | Reason for addition |
---|---|---|---|
1352 | Mars | Red Bank | Migration |
1355 | Mars | Oracle | Migration |
1357 | Mars | Swapper | Migration |
1358 | Mars | Params | Migration |
1361 | Mars | Credit Manager | Migration |
1362 | Mars | Health | Migration |
Pins after Review
Code ID | Team | Contract |
---|---|---|
1352 | Mars | Red Bank |
1355 | Mars | Oracle |
1357 | Mars | Swapper |
1358 | Mars | Params |
1361 | Mars | Credit Manager |
1362 | Mars | Health |
Target Onchain Date: Monday 3th February 2025