Motivation
Currently Delegators must approve the ability for The Graph’s staking contract to allocate tokens each time they want to initiate delegating tokens to an Indexer. This increases transaction fees by the number of Indexers Delegators choose to delegate to, which is a behaviour encouraged by The Graph. Allowing Delegators to approve an infinite allocation once greatly reduces transaction fees, even if it’s not the first time they perform an approval transaction.
Implementation
Today, the Delegation dApp does not explicitly display the ability to complete approval transactions. The Delegation dApp could provide options to manually initiate a token approval transaction first, and then follow-up with the delegation deposit transaction. Here is a mockup of how this could look:
This would allow someone who has been delegating for some time, and is comfortable doing so, to approve ∞ and no longer have to complete any further approval transactions.
I won’t profess to understand how this is done at the smart contract level, but it is very common place on other platforms and dApps and would be a welcome change for Delegators who are looking to engage with The Graph network for a long period of time.