Skip to content

Conversation

@tom2o17
Copy link

@tom2o17 tom2o17 commented Nov 5, 2025

Adds Minter Module to OFT tokens

@pegahcarter
Copy link
Collaborator

What if, instead of minting on remote chains, we hop to Fraxtal, mint there, and send the tokens back via hopCompose()?

Add the minter_burn_from function as well as monotonic accounting variables
/// @param minter_address Address of minter to add
function _addMinter(address minter_address) internal {
MinterModuleStorage storage $ = _getMinterModuleStorage();
if ($.minters[minter_address]) revert AlreadyExists();
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: add zero-address sanity checks similar to Fraxtal's frxUSD.

Copy link
Collaborator

Choose a reason for hiding this comment

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

// Views
//==============================================================================

function minters(address _address) public view returns(bool) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: these views can be external if they're not called internally.

Copy link
Author

Choose a reason for hiding this comment

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

Will fix

Copy link
Author

Choose a reason for hiding this comment

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

But playing devils advocate here, we do not know what cases these could be needed in the future

For example if we implement a burn module and want to fat it by minters

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh good point. I didn't think of that. Yeah in that case we would want the functions public. Okay, I am good with keeping them public.

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