mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
8 lines
230 B
TypeScript
8 lines
230 B
TypeScript
// Should be a ts file that has a global var var gas = 0;
|
|
import { BigNumber } from 'ethers';
|
|
|
|
export var totalGas:BigNumber = BigNumber.from(0);
|
|
|
|
export function addGas(amount: BigNumber) {
|
|
totalGas = totalGas.add(amount);
|
|
} |