Open
Conversation
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
& fixed a bug Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Updated tests Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Added new events tests Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Added test assertion Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
0xRomain
reviewed
Jun 19, 2023
contracts/TalentLayerService.sol
Outdated
| ProposalStatus status, | ||
| address rateToken, | ||
| uint256 rateAmount, | ||
| uint256 amount, |
0xRomain
reviewed
Jun 19, 2023
contracts/TalentLayerService.sol
Outdated
| address rateToken, | ||
| uint256 rateAmount, | ||
| uint256 expirationDate | ||
| uint256 amount, |
0xRomain
reviewed
Jun 19, 2023
contracts/TalentLayerEscrow.sol
Outdated
| */ | ||
| function getClaimableReferralBalance(address _token) external view returns (uint256 balance) { | ||
| uint256 referrerId = talentLayerIdContract.ids(_msgSender()); | ||
| talentLayerIdContract.isValid(referrerId); |
Contributor
There was a problem hiding this comment.
not need to do isValid, will return 0 if not valid
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
0xRomain
reviewed
Jul 17, 2023
.openzeppelin/polygon-mumbai.json
Outdated
| "c980df0f3f2d12ed5c153d563a1fbbb3da4380540f0f81a91a88015668a2090b": { | ||
| "address": "0xB60f8b4f06B66ecc75806cC5bbfc17b6eF8e56D7", | ||
| "txHash": "0xbe5bd8de2d13887a8f6109045d69507b8ab9e16cb1875656b2ca746af012603f", | ||
| "452eb25e1c135f95b329252e20212c01eb69015592373af7097bb11bb44a9ae1": { |
Contributor
There was a problem hiding this comment.
these updates must not be pushed unless it's the official Mumbai contracts of TL
0xRomain
reviewed
Jul 17, 2023
contracts/TalentLayerEscrow.sol
Outdated
| * @notice Allows a referrer to claim its tokens & / or ETH balance. | ||
| * @param _referrerId The ID of the referrer claiming the balance. | ||
| * @param _tokenAddress The address of the Token contract (address(0) if balance in ETH). | ||
| * @dev Emits a BalanceTransferred & a ReferralAmountClaimed events |
0xRomain
reviewed
Jul 17, 2023
contracts/TalentLayerEscrow.sol
Outdated
| ) private view returns (uint256 totalEscrowAmount) { | ||
| return | ||
| totalEscrowAmount = | ||
| _amount + |
Contributor
There was a problem hiding this comment.
I just realize there is an issue here. The system can only work if we are taking the same fees that we do today on the _amount, for the _referralAmount. With fees it becomes sybil resistant
So here, _originServiceFeeRate, _originValidatedProposalFeeRate and _originValidatedProposalFeeRate should be applied to _referralAmount
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
Signed-off-by: Quentin D.C <quent043@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New PR:
Useful info
Auto-Review checklist
Typing
npm run lintnpm run format