move DummySTO (and associated factory) to the mocks folder and add a payable fallback function to test reclaiming ETH & ERC20.
add a reclaimETH function to STO.sol to allow any ETH that may become locked in an STO contract to be reclaimed by the issuer.
make Dividend contracts (ERC20 & Ether) pausable, with pulling dividends only possible when the contract is not paused. All other functions do not depend on being paused, but are open only to authorised addresses.
allow the issuer to update maturity & expiry dates on existing dividends. This can be used to postpone a dividend (pushing back the maturity) or make a dividend reclaimable (making expiry earlier than now) or to correct mistakes when originally creating the dividend. NB - changing these dates may cause a dividend to no longer be valid for payments (e.g. setting it's expiry to be in the past, or it's maturity to be in the future).
small refactor to validDividendIndex to reduce contract size
add reclaimETH and reclaimERC20 to Dividend contracts (ERC20 & Ether). This allows (in an emergency) any funds to be pulled out of a dividend contract by the issuer.
fix bug in _payDividend Dividend function (ERC20 & Ether) when withholding tax is 100%
improve test cases (add a test for reclaiming ETH & ERC20 tokens from STO and 100% withholding tax in Dividends, and for pausing / updating dates / reclaiming ETH / ERC20 from Dividend contracts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.