Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean test file for reimplemenation #33

Merged
merged 2 commits into from
Apr 18, 2022
Merged

clean test file for reimplemenation #33

merged 2 commits into from
Apr 18, 2022

Conversation

0xAlcibiades
Copy link
Member

No description provided.

Copy link
Contributor

@pegahcarter pegahcarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending old code to the graveyard ✔️

WETH.approve(address(engine), type(uint256).max);
DAI.approve(address(engine), type(uint256).max);
USDC.approve(address(engine), type(uint256).max);
// TODO(Why)
engine.setApprovalForAll(address(this), true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for any future transfers that need to be done. We might as well pre-approve the contract

exerciseTimestamp: uint40(block.timestamp),
expiryTimestamp: (uint40(block.timestamp) + 604800)
});
IOptionSettlementEngine.Option memory option = IOptionSettlementEngine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this obj in contract wide storage would help shortening other tests as we would not have to re-declare a whole option, just set a new one in memory to point to the storage one and modify the desired attributes

@0xAlcibiades 0xAlcibiades merged commit 85f28a3 into master Apr 18, 2022
@0xAlcibiades 0xAlcibiades deleted the tabula_rasa branch April 18, 2022 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants