PerpetualCreator
Perpetual Contract creator.
nonReentrant() modifier
Prevents a contract from calling itself, directly or indirectly.
Calling a nonReentrant function from another nonReentrant
function is not supported. It is possible to prevent this from happening
by making the nonReentrant function external, and make it call a
private function that does the actual work.
nonReentrantView() modifier
Designed to prevent a view-only method from being re-entered during a call to a nonReentrant() state-changing method.
constructor(address _finderAddress, address _tokenFactoryAddress, address _timerAddress) public
Constructs the Perpetual contract.
Parameters:
-
_finderAddress: UMA protocol Finder used to discover other protocol contracts. -
_tokenFactoryAddress: ERC20 token factory used to deploy synthetic token instances. -
_timerAddress: Contract that stores the current time in a testing environment.
createPerpetual(struct PerpetualCreator.Params params, struct ConfigStoreInterface.ConfigSettings configSettings) → address public
Creates an instance of perpetual and registers it within the registry.
Parameters:
-
params: is aConstructorParamsobject from Perpetual.
setCurrentTime(uint256 time) external
Sets the current time.
Will revert if not running in test mode.
Parameters:
-
time: timestamp to set current Testable time to.