IronVestAdminRequried
this is the same contract as our audited iron…
#18
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.
In these contracts emergencyWithdrawal can withdraw any tokens regardless of condition
IronVestAdminRequried
: This is the same contract as our auditedironvest
, but the difference is that we are now going to deploy the contract using the factory pattern. In the previous implementation, the deployer was the default admin, but here we have to take it as a parameter. This contract file and name are separated from the audited one.There is a contract with the name of
IronVestDeployer
. By using this contract, we can deployIronVestAdminRequried
and our extended version of the contract.There is a contract named
IronVestExtended.sol
(in a separate directory), which is supposed to have the functionality of updating the beneficiary address. This contract is inheriting another contract namedIronVestPreCheck.sol
. This contract is a read-only contract, and we only need to deploy it once. We can use it as many times as we want. This contract is supposed to check some preconditions for executing a function.Lastly, for
IronVestExtended.sol
deployment, we need to activate optimization of 200 points.```ct with the name of
IronVestPreCheck.sol
this contract is read only contract we just need to deploy this contract once and we can use it as many time as we want this contract supposed to check some preCondition for executing a functionLaslty for
IronVestExtended.sol
deployment we need to active optimization of 200 points