malik

Results 24 issues of malik

use assembly for implementation to save gas ## Related Issue Gas Optimisation ## Description of changes Used assembly to save gas

### Component Gas Optimization, General design optimization (improving efficiency, cleanliness, or developer experience) ### Describe the suggested feature and problem it solves. Modular operations where the denominator is a power...

optimization

## Related Issue Which issue does this pull request resolve? Gas optimisation ## Description of changes 1. Introduced unchecked block for the _checkProtocolFee() function , this potentially saves 100+ in...

## Related Issue Gas Optimisation ## Description of changes 1.Introduced unchecked block for the _checkProtocolFee() function , this potentially saves 100+ in gas 2.Performed modulo operation using bit operation this...

optimization

the test fails for ``` function fromLast20Byte(bytes32 bytesValue) external pure returns (address _result) { assembly { _result := shr( 96, bytesValue ) } } ``` which should obviously pass, i...

## Description Optimized Bytes32AddressLibs by using assembly and bit operations used assembly and bit operations to save 31+ in runtime gas Previously ``` library Bytes32AddressLib { function fillLast12Bytes(address addressValue) internal...

``` contract test {//deployment cost: 109638 in gas cost error notEqual(bytes32); function red(uint a) public pure {//224 in gas cost if successful and 287 if it reverts if(a != 20){...

in the bytecode.rs file, i think the Bytecode struct should contain an optional field for the contract metadata

implemented a custom zkVm serializer