aave-protocol-v2/helpers/gas-tracker.ts

10 lines
261 B
TypeScript
Raw Normal View History

2021-01-14 23:43:49 +00:00
/**
* @dev This is a simple script that keeps track of gas spent during deployment.
*/
2021-01-12 02:15:47 +00:00
import { BigNumber } from 'ethers';
export var totalGas:BigNumber = BigNumber.from(0);
export function addGas(amount: BigNumber) {
totalGas = totalGas.add(amount);
}