From 234afd9d895f3e046dcd1177185603047058674f Mon Sep 17 00:00:00 2001 From: Anton Cheng Date: Tue, 4 May 2021 17:09:54 +0800 Subject: [PATCH 1/2] docs: typo of default symbol --- contracts/Vault.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Vault.vy b/contracts/Vault.vy index 7cfb5a5b..c5ffee37 100644 --- a/contracts/Vault.vy +++ b/contracts/Vault.vy @@ -263,7 +263,7 @@ def initialize( If `nameOverride` is not specified, the name will be 'yearn' combined with the name of `token`. - If `symbolOverride` is not specified, the symbol will be 'y' + If `symbolOverride` is not specified, the symbol will be 'yv' combined with the symbol of `token`. @param token The token that may be deposited into this Vault. @param governance The address authorized for governance interactions. From 527bc6521e95e3beb3d98eb29407dac90a1408cb Mon Sep 17 00:00:00 2001 From: Anton Cheng Date: Tue, 4 May 2021 17:10:42 +0800 Subject: [PATCH 2/2] docs: corrected saved gas post berlin --- contracts/Vault.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Vault.vy b/contracts/Vault.vy index c5ffee37..d4aef68c 100644 --- a/contracts/Vault.vy +++ b/contracts/Vault.vy @@ -797,7 +797,7 @@ def _issueSharesForAmount(to: address, amount: uint256) -> uint256: # calculation will be wrong. This means that only *trusted* tokens # (with no capability for exploitative behavior) can be used. shares: uint256 = 0 - # HACK: Saves 2 SLOADs (~4000 gas) + # HACK: Saves 2 SLOADs (~200 gas, post-Berlin) totalSupply: uint256 = self.totalSupply if totalSupply > 0: # Mint amount of shares based on what the Vault is managing overall