See for example: https://github.com/graphprotocol/contracts/pull/912/files#diff-b69881f1b98af997244bfdf28aafc93430657159c9d31bb86fdb78795f6913acR101