Skip to content

Vault wrapped tokens #12

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/tokenized-strategy-periphery"]
path = lib/tokenized-strategy-periphery
url = https://github.com/yearn/tokenized-strategy-periphery
309 changes: 0 additions & 309 deletions \

This file was deleted.

2 changes: 1 addition & 1 deletion lib/forge-std
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
Submodule openzeppelin-contracts updated 46 files
+5 −0 .changeset/brown-seals-sing.md
+5 −0 .changeset/brown-turkeys-marry.md
+0 −5 .changeset/chilly-guests-jam.md
+5 −0 .changeset/dirty-bananas-shake.md
+5 −0 .changeset/good-cameras-rush.md
+5 −0 .changeset/lucky-teachers-sip.md
+5 −0 .changeset/proud-cooks-do.md
+5 −0 .changeset/sixty-tips-wink.md
+5 −0 .changeset/ten-hats-begin.md
+5 −0 .changeset/ten-peas-mix.md
+3 −0 FUNDING.json
+1 −1 README.md
+1 −26 contracts/account/utils/draft-ERC4337Utils.sol
+12 −0 contracts/interfaces/README.adoc
+26 −0 contracts/mocks/docs/token/ERC6909/ERC6909GameItems.sol
+14 −0 contracts/token/ERC20/utils/SafeERC20.sol
+27 −0 contracts/token/ERC6909/README.adoc
+224 −0 contracts/token/ERC6909/draft-ERC6909.sol
+52 −0 contracts/token/ERC6909/extensions/draft-ERC6909ContentURI.sol
+76 −0 contracts/token/ERC6909/extensions/draft-ERC6909Metadata.sol
+34 −0 contracts/token/ERC6909/extensions/draft-ERC6909TokenSupply.sol
+2 −0 contracts/utils/cryptography/EIP712.sol
+2 −2 contracts/utils/cryptography/Hashes.sol
+95 −0 contracts/utils/structs/EnumerableMap.sol
+177 −0 contracts/utils/structs/EnumerableSet.sol
+1 −0 docs/modules/ROOT/nav.adoc
+47 −0 docs/modules/ROOT/pages/erc6909.adoc
+8 −1 hardhat/async-test-sanity.js
+25 −0 scripts/generate/templates/EnumerableMap.js
+164 −1 scripts/generate/templates/EnumerableSet.js
+9 −5 scripts/generate/templates/EnumerableSet.opts.js
+2 −2 scripts/set-max-old-space-size.sh
+12 −10 scripts/upgradeable/upgradeable.patch
+8 −67 test/account/utils/draft-ERC4337Utils.test.js
+6 −9 test/account/utils/draft-ERC7579Utils.t.sol
+36 −0 test/token/ERC20/utils/SafeERC20.test.js
+216 −0 test/token/ERC6909/ERC6909.behavior.js
+104 −0 test/token/ERC6909/ERC6909.test.js
+49 −0 test/token/ERC6909/extensions/ERC6909ContentURI.test.js
+58 −0 test/token/ERC6909/extensions/ERC6909Metadata.test.js
+53 −0 test/token/ERC6909/extensions/ERC6909TokenSupply.test.js
+9 −0 test/utils/introspection/SupportsInterface.behavior.js
+43 −0 test/utils/structs/EnumerableMap.behavior.js
+1 −0 test/utils/structs/EnumerableMap.test.js
+43 −0 test/utils/structs/EnumerableSet.behavior.js
+8 −4 test/utils/structs/EnumerableSet.test.js
1 change: 1 addition & 0 deletions lib/tokenized-strategy-periphery
21 changes: 21 additions & 0 deletions script/DeployPendleLPWrapper.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Script} from "forge-std/Script.sol";
import {PendleLPWrapper} from "../src/WrapperToken/PendleLPWrapper.sol";

contract DeployPendleLPWrapper is Script {
// Mainnet Pendle Market address
address public constant LP_SUSDA = 0xD75FC2B1ca52e72163787D1C370650F952E75DD7;

function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY_1");

vm.startBroadcast(deployerPrivateKey);

// Deploy wrapper with same parameters as test
PendleLPWrapper wrapper = new PendleLPWrapper("Wrapped Pendle LP-sUSDa", "wPendle LP-sUSDa", LP_SUSDA);

vm.stopBroadcast();
}
}
2 changes: 1 addition & 1 deletion src/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1571,4 +1571,4 @@ contract Pool is Ownable, ReentrancyGuard {
if (p < e) return 0;
return FixedPointMathLib.rawSub(p, e);
}
}
}
Loading
Loading