kumo-earth / kumo-protocol

The KUMO protocol is a decentralized borrowing protocol that allows you to draw 0% interest loans against supported natural assets used as collateral. The loans are paid out in collateralized stablecoin KUSD pegged to the USD.
GNU General Public License v3.0
3 stars 7 forks source link

Reduce the size of TroveManager.sol #184

Open udosson opened 2 years ago

udosson commented 2 years ago

The smart contract TroveManager.sol increased in size - probably due to the multi-asset feature - and is now bigger than the allowed 24576 bytes from EIP-170

The diamond pattern could be an option. (https://dev.to/mudgen/ethereum-s-maximum-contract-size-limit-is-solved-with-the-diamond-standard-2189)

We need to reduce the size of the smart contract.

Useful links:

asimpk commented 2 years ago

TroveManager deployment error when starting local dev-chain yarn start-dev-chain Need to increase max code size limit in dev-chain\spec.json "maxCodeSize": 24576,