Logo

protocol

Loopring Protocol Smart Contract on Ethereum

Gas Usage at Nov-08-2017

The following measurements usge 21Gwei as gas price.

A Ring of 2 Orders:

Function or Code Segment GAS
code before verifyInputDataIntegrity 82451
Verifyinputdataintegrity 83140
verifyTokensRegistered 87117
computeAndGetRinghashInfo 93385
verifySignature for ring 97858
assembleOrders 128653
handleRing-verifyRingHasNoSubRing 129157
handleRing-verifyMinerSuppliedFillRates 133143
handleRing-scaleRingBasedOnHistoricalRecords 136692
handleRing-calculateRingFillAmount 139947
handleRing-calculateRingFees 164508
handleRing-settleRing 366630
RingMined event 369718
total 369718

A Ring of 3 Orders:

Function or Code Segment GAS
code before verifyInputDataIntegrity 63790
Verifyinputdataintegrity 64769
verifyTokensRegistered 69499
computeAndGetRinghashInfo 76334
verifySignature for ring 80743
assembleOrders 126341
handleRing-verifyRingHasNoSubRing 127446
handleRing-verifyMinerSuppliedFillRates 133036
handleRing-scaleRingBasedOnHistoricalRecords 137770
handleRing-calculateRingFillAmount 141900
handleRing-calculateRingFees 174817
handleRing-settleRing 409617
RingMined event 412897
total 412897