From 5643bbc10b25069c9cff0212e87bbc16dd394664 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Fri, 16 Mar 2018 21:21:12 -0300 Subject: [PATCH] more details in comments --- contracts/democracy/DelegationProxy.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/democracy/DelegationProxy.sol b/contracts/democracy/DelegationProxy.sol index bcc363b..e67129d 100644 --- a/contracts/democracy/DelegationProxy.sol +++ b/contracts/democracy/DelegationProxy.sol @@ -49,6 +49,7 @@ contract DelegationProxy { /** * @notice Dig into delegate chain to find final delegate, makes delegationOfAt cheaper to call; + * Should be used when you want to track an isolated long delegation chain FinalDelegate * @param _delegator Address to lookup final delegate. * @param _block From what block. * @return True when found final delegate. @@ -80,6 +81,7 @@ contract DelegationProxy { /** * @notice Explore the chain from `_delegator`, saving FinalDelegate indexes for all delegates, makes delegationOfAt cheaper to call. + * Should be used to track a common FinalDelegates in a small delegation chain, saving gas on repetitive lookups; * @param _delegator Address to lookup final delegate. * @param _block From what block. * @param _stackLimit how much deep explore to build the indexes