This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
Use a pull model to withdraw deposit ETH balances #570
Merged
Commits on Apr 9, 2020
-
Implement withdrawal fundctions
enableWithdrawal - Enables a given address to withdraw value after the contract reaches an end state withdrawFunds - Withdraw the funds a given caller is allowed. Only callable after the contract has reached an end-state.
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for c3883da - Browse repository at this point
Copy the full SHA c3883daView commit details -
Use the pull model instead of forwarding value directly.
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for f64f0e8 - Browse repository at this point
Copy the full SHA f64f0e8View commit details -
add getWithdrawAllowance method
Allow for withdrawable-allowance querry.
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 0a6083a - Browse repository at this point
Copy the full SHA 0a6083aView commit details -
move auctionValue() to TestDeposit()
We use this in liquidation tests now, it is still inherited for use where TestDepositUtils is used
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 2e362fb - Browse repository at this point
Copy the full SHA 2e362fbView commit details -
NicholasDotSol committed
Apr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 5ee7544 - Browse repository at this point
Copy the full SHA 5ee7544View commit details -
Update remaining tests to check for pullable value
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 90b082e - Browse repository at this point
Copy the full SHA 90b082eView commit details -
contact -> contract _valueToDistribute -> valueToDistribute
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 3da16e5 - Browse repository at this point
Copy the full SHA 3da16e5View commit details -
check `contractEthBalance > valueToDistribute + 1` to avoid spliting a balance of 1 wei.
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 41ebf22 - Browse repository at this point
Copy the full SHA 41ebf22View commit details -
Configuration menu - View commit details
-
Copy full SHA for a83cf15 - Browse repository at this point
Copy the full SHA a83cf15View commit details -
check Deposit balances allong with allowances
Check that the contract has what it owes
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 4e3011e - Browse repository at this point
Copy the full SHA 4e3011eView commit details -
Assert initial balance is empty
For better test safety make sure the initial balance is not influences by other factors
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 08b1a7d - Browse repository at this point
Copy the full SHA 08b1a7dView commit details -
Check every state for withdraw eligibility
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 4d2160d - Browse repository at this point
Copy the full SHA 4d2160dView commit details -
Account for gas cost and check exact value
Checking that the final balance is greated than the initial one does not prove that the withdraw() functions correctly. Instead, account for gas cost and check the exact value.
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for f16e591 - Browse repository at this point
Copy the full SHA f16e591View commit details -
@notice -> @dev for struct mappings
Users will not be directly interacting, therefore @dev is more appropreate
NicholasDotSol committedApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for a281cce - Browse repository at this point
Copy the full SHA a281cceView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.