瀏覽代碼

Note native ERC20 behavior in VestingWallet (#5299)

Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
Ernesto García 10 月之前
父節點
當前提交
ffca412299
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      contracts/finance/VestingWallet.sol

+ 5 - 0
contracts/finance/VestingWallet.sol

@@ -26,6 +26,11 @@ import {Ownable} from "../access/Ownable.sol";
  *
  * NOTE: When using this contract with any token whose balance is adjusted automatically (i.e. a rebase token), make
  * sure to account the supply/balance adjustment in the vesting schedule to ensure the vested amount is as intended.
+ *
+ * NOTE: Chains with support for native ERC20s may allow the vesting wallet to withdraw the underlying asset as both an
+ * ERC20 and as native currency. For example, if chain C supports token A and the wallet gets deposited 100 A, then
+ * at 50% of the vesting period, the beneficiary can withdraw 50 A as ERC20 and 25 A as native currency (totaling 75 A).
+ * Consider disabling one of the withdrawal methods.
  */
 contract VestingWallet is Context, Ownable {
     event EtherReleased(uint256 amount);