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

Unpriced collateral #1220

Closed
wants to merge 12 commits into from
Closed

Unpriced collateral #1220

wants to merge 12 commits into from

Conversation

tbrent
Copy link
Collaborator

@tbrent tbrent commented Oct 18, 2024

No description provided.


mapping(address coll => uint192 feePerSecond) public demurrageDeployments;
mapping(address coll => uint192 feePerSecond) public demurrageDeployments; // not unique by erc20
Copy link
Member

Choose a reason for hiding this comment

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

address erc20 => uint256/uint192 fee => address collateral is much better to query and track.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can't do that -- permissionless pass-in of all variables

Copy link
Collaborator Author

@tbrent tbrent Oct 22, 2024

Choose a reason for hiding this comment

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

there is not just 1 collateral possible, per fee tier

Copy link
Member

Choose a reason for hiding this comment

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

Sorry I meant for unpriced demurrage collateral. There aren't any specific parameters for those, I don't think right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that's 2 lines below and works the way you want it to

Copy link
Collaborator

Choose a reason for hiding this comment

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

well it's saving by address of the deployed collateral. maybe this comment should go in the other pr, but if we save a mapping like akshat suggested (and error on duplicates), then the fe can easily query the contract based on the erc20 addy. otherwise we're requiring a subgraph dependency

@tbrent tbrent force-pushed the unpriced-collateral branch from dd4dd1d to c40b322 Compare October 22, 2024 21:05
@tbrent
Copy link
Collaborator Author

tbrent commented Nov 6, 2024

tabling plans to use unpriced collateral for now

@tbrent tbrent closed this Nov 6, 2024
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.

3 participants