Skip to content

Commit c23e81a

Browse files
authored
Merge pull request #98 from NFTX-project/fix/VaultFactory/getVTokenPremium1155
Fix: VaultFactory: getVTokenPremium1155
2 parents 816b3e7 + 14ab81c commit c23e81a

11 files changed

+1208
-276
lines changed

deploy/individual/NFTXVaultFactory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
1616
from: deployer,
1717
proxy: {
1818
proxyContract: "OpenZeppelinTransparentProxy",
19+
owner: config.multisig,
1920
execute: {
2021
init: {
2122
methodName: "__NFTXVaultFactory_init",

deployments/goerli/NFTXVaultFactoryUpgradeableV3.json

Lines changed: 2 additions & 40 deletions
Large diffs are not rendered by default.

deployments/goerli/NFTXVaultFactoryUpgradeableV3_Implementation.json

Lines changed: 39 additions & 77 deletions
Large diffs are not rendered by default.

deployments/goerli/solcInputs/8cbb6d836647415ba6ca75276d13f76f.json

Lines changed: 353 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/NFTXVaultFactoryUpgradeableV3_Implementation.json

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/8cbb6d836647415ba6ca75276d13f76f.json

Lines changed: 353 additions & 0 deletions
Large diffs are not rendered by default.

deployments/sepolia/NFTXVaultFactoryUpgradeableV3.json

Lines changed: 2 additions & 40 deletions
Large diffs are not rendered by default.

deployments/sepolia/NFTXVaultFactoryUpgradeableV3_Implementation.json

Lines changed: 39 additions & 77 deletions
Large diffs are not rendered by default.

deployments/sepolia/solcInputs/8cbb6d836647415ba6ca75276d13f76f.json

Lines changed: 353 additions & 0 deletions
Large diffs are not rendered by default.

src/NFTXVaultFactoryUpgradeableV3.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ contract NFTXVaultFactoryUpgradeableV3 is
352352
(uint256 qty, address depositor, uint48 timestamp) = _vault
353353
.depositInfo1155(tokenId, _pointerIndex1155 + i);
354354

355-
if (qty > amount) {
355+
if (qty >= amount) {
356356
uint256 vTokenPremium = _getVTokenPremium(
357357
timestamp,
358358
_premiumMax,

0 commit comments

Comments
 (0)