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

Fix token gating #635

Merged
merged 39 commits into from
Jul 6, 2023
Merged

Fix token gating #635

merged 39 commits into from
Jul 6, 2023

Conversation

anajuliabit
Copy link
Contributor

@anajuliabit anajuliabit commented May 12, 2023

Fix #627

@anajuliabit anajuliabit marked this pull request as ready for review May 19, 2023 00:00
@anajuliabit anajuliabit requested review from mischat and zajck and removed request for mischat May 19, 2023 00:01
@anajuliabit anajuliabit self-assigned this May 19, 2023
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

Looks really good, a pointed out just some minor things.

contracts/protocol/bases/ProtocolBase.sol Show resolved Hide resolved
contracts/protocol/bases/GroupBase.sol Outdated Show resolved Hide resolved
contracts/protocol/bases/GroupBase.sol Outdated Show resolved Hide resolved
contracts/protocol/libs/ProtocolLib.sol Show resolved Hide resolved
@mischat mischat added the v2.3.0 label May 26, 2023
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

Looks good, just another small request.

contracts/protocol/bases/ProtocolBase.sol Show resolved Hide resolved
@anajuliabit anajuliabit requested a review from zajck May 29, 2023 18:25
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@anajuliabit anajuliabit marked this pull request as draft June 2, 2023 11:25
@anajuliabit anajuliabit marked this pull request as ready for review June 5, 2023 16:11
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

Just a few more requests.

contracts/protocol/bases/GroupBase.sol Outdated Show resolved Hide resolved
test/example/SnapshotGateTest.js Outdated Show resolved Hide resolved
contracts/protocol/facets/ExchangeHandlerFacet.sol Outdated Show resolved Hide resolved
contracts/domain/BosonConstants.sol Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ExchangeHandlerTest.js Outdated Show resolved Hide resolved
@anajuliabit anajuliabit requested a review from zajck June 6, 2023 14:02
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

Looks good... But I managed to find one more little thing (that's been there for ages actually, but seems a good time to fix it).

contracts/protocol/bases/GroupBase.sol Outdated Show resolved Hide resolved
contracts/protocol/bases/GroupBase.sol Outdated Show resolved Hide resolved
@anajuliabit anajuliabit requested a review from zajck June 6, 2023 21:04
zajck
zajck previously approved these changes Jun 7, 2023
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@anajuliabit anajuliabit requested a review from mischat June 9, 2023 12:45
Copy link
Member

@zajck zajck left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@@ -724,7 +763,7 @@ describe("IBosonExchangeHandler", function () {
).to.revertedWith(RevertReasons.REGION_PAUSED);
});

it("buyer address is the zero address", async function () {
it("buyer.address is the zero address", async function () {
Copy link
Member

Choose a reason for hiding this comment

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

Funny change, but I can live with it :)

Copy link
Member

@mischat mischat left a comment

Choose a reason for hiding this comment

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

looks good to me.

* - EvaluationMethod.None and has fields different from 0
* - EvaluationMethod.Threshold and token address or maxCommits is zero
* - EvaluationMethod.SpecificToken and token address or maxCommits is zero
* A invalid condition is one that fits any of the following criteria:
Copy link
Member

Choose a reason for hiding this comment

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

s/A invalid/An invalid/ ... one for the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed on #656 :)

* A invalid condition is one that fits any of the following criteria:
* - EvaluationMethod.None: any field different from zero
* - EvaluationMethod.Threshold:
-Token address, maxCommits, or threshold is zero.
Copy link
Member

Choose a reason for hiding this comment

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

s/-T/- T/ for later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed on #656 :)

@mischat mischat merged commit 2026a63 into main Jul 6, 2023
9 checks passed
@mischat mischat deleted the fix-token-gating branch July 6, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protocol - Fix Token Gating
4 participants