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

add base XPToken with IXPProvider interface #10

Merged
merged 8 commits into from
Oct 11, 2024
Merged

Conversation

gravityblast
Copy link
Member

@gravityblast gravityblast commented Oct 2, 2024

Description

Describe the changes made in your pull request here.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Added natspec comments?
  • Ran pnpm adorno?
  • Ran pnpm verify?

closes #41

@gravityblast gravityblast marked this pull request as draft October 2, 2024 13:09
@gravityblast gravityblast changed the title [WIP] add base XPToken with IXPProvider interface add base XPToken with IXPProvider interface Oct 8, 2024
@gravityblast gravityblast marked this pull request as ready for review October 8, 2024 09:01
src/XPToken.sol Show resolved Hide resolved
src/interfaces/IXPProvider.sol Outdated Show resolved Hide resolved
"verify": "certoraRun certora/certora.conf",
"verify": "pnpm verify:rewards_streamer_mp && pnpm verify:xp_token",
"verify:rewards_streamer_mp": "certoraRun certora/confs/RewardsStreamerMP.conf",
"verify:xp_token": "certoraRun certora/confs/XPToken.conf",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might want to introduce separate CI tasks for these in the github action. But can do that in a follow-up PR

src/XPToken.sol Show resolved Hide resolved
src/XPToken.sol Outdated

function balanceOf(address account) public view returns (uint256) {
uint256 userTotalXPContribution = 0;
uint256 totalXPContribution = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we wanted to rename this to shares no?

Copy link
Member Author

Choose a reason for hiding this comment

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

@0x-r4bbit yes I renamed the storage vars but not these local ones, I'm doing it now

@0x-r4bbit
Copy link
Collaborator

@gravityblast can you run pnpm adorno on this so we get gas reports?

@gravityblast gravityblast merged commit 7452242 into main Oct 11, 2024
7 checks passed
@gravityblast gravityblast deleted the xp-token-providers branch October 11, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Implement base XP ERC20 with fixed supply and balances based on MP
2 participants