Skip to content

Instantly share code, notes, and snippets.

@RiccardoBiosas
Created September 23, 2021 18:46
Show Gist options
  • Save RiccardoBiosas/14633376faaae2b56f1fa1eb78e9adef to your computer and use it in GitHub Desktop.
Save RiccardoBiosas/14633376faaae2b56f1fa1eb78e9adef to your computer and use it in GitHub Desktop.
const derivative = derivativeFactory({
margin: toBN("40"), //required collateral denominated in DAI token
endTime: ~~(Date.now() / 1000) + SECONDS_40_MINS, // Now + 40 mins
params: [
toBN("3430"), // Strike Price 3430DAI
],
oracleId: adminOracleController.address,
token: dai.address,
syntheticId: optionCallMock.address,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment