Skip to content

Conversation

@Gutyn
Copy link
Contributor

@Gutyn Gutyn commented Jan 6, 2023

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #18728: Verifiers should receive payout in token On-Chain [GIP-4].

@Gutyn Gutyn changed the title GIP-2, GIP-4 GIP-4: Decentralized Payout/Slashing Jan 23, 2023
@Gutyn Gutyn marked this pull request as ready for review January 23, 2023 19:55

// ============ Private Storage ============

address private _token;
Copy link
Contributor

Choose a reason for hiding this comment

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

State variable _token can be immutable because I don't think there's a case where an owner would change the payout token. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ideally, there shouldn't be a case but we might mess something up. We can remove but I think we're good, if the users revolt we can explain that this will be removed once the system is complete

Copy link
Contributor

Choose a reason for hiding this comment

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

Keep in mind that ERC20 is upgradable atm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes but we might mess up something with the tokens that we own, I just know that stuff goes wrong 😄

return _token;
}

function setToken(address token) external onlyOwner {
Copy link
Contributor

Choose a reason for hiding this comment

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

If _token is updated to be immutable, please remove the setToken function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Elvis339 this contract is updatable and we can always remove this function later but for now we don't want to limit our options, what if we mess up some contract and want to change.

@Gutyn Gutyn merged commit 3d6bdb2 into master Jan 23, 2023
@Gutyn Gutyn deleted the gip-4 branch January 23, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants