-
Notifications
You must be signed in to change notification settings - Fork 9
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 docs spelling #152
base: main
Are you sure you want to change the base?
Fix docs spelling #152
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,7 +230,7 @@ contract AssetVault is WalletUtils, IAssetVault { | |
/** | ||
* @notice Redistribute yield to the beneficiaries of the AssetToken, using yield distributions | ||
* @dev Only the user wallet can initiate the yield redistribution. The yield redistributed | ||
* to each beneficiary is rounded down, and any remaining CurrencyToken are kept in the vault. | ||
* to each beneficiary is rounded down, and any remaining CurrencyToken is kept in the vault. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is grammatically incorrect |
||
* The Solidity compiler adds a check that the target address has `extcodesize > 0` | ||
* and otherwise reverts for high-level calls, so we have to use a low-level call here | ||
* @param assetToken AssetToken from which the yield is to be redistributed | ||
|
@@ -348,7 +348,7 @@ contract AssetVault is WalletUtils, IAssetVault { | |
return; | ||
} | ||
|
||
// Look for existing distribution with same beneficiary and expiration | ||
// Look for existing distribution with the same beneficiary and expiration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is unnecessary in a short comment |
||
while (true) { | ||
if (distribution.beneficiary == beneficiary && distribution.yield.expiration == expiration) { | ||
distribution.yield.amount += amount; | ||
|
@@ -378,7 +378,7 @@ contract AssetVault is WalletUtils, IAssetVault { | |
* If there are too many yield distributions to process, the function will stop to avoid | ||
* reaching the gas limit, and the beneficiary must call the function again to renounce more. | ||
* @param assetToken AssetToken from which the yield is to be redistributed | ||
* @param amount Amount of AssetTokens to renounce from from the yield distribution | ||
* @param amount Amount of AssetTokens to renounce from the yield distribution | ||
* @param expiration Timestamp at which the yield expires | ||
*/ | ||
function renounceYieldDistribution( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,7 @@ contract SignedOperations is EIP712, WalletUtils, ISignedOperations { | |
|
||
/** | ||
* @notice Cancel pending SignedOperations that have not yet been executed | ||
* @dev This function can only be called by the user that signed the SignedOperations. | ||
* @dev This function can only be called by the user who signed the SignedOperations. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The user may not be a person (e.g. automated system), so "that" is appropriate |
||
* After this, the affected SignedOperations will revert when trying to be executed. | ||
* @param nonce Nonce of the SignedOperations to cancel | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is grammatically incorrect