https://github.com/primitivefinance/portfolio-erc20-wrapper
https://github.com/primitivefinance/portfolio-erc20-wrapper
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/primitivefinance/portfolio-erc20-wrapper
- Owner: primitivefinance
- Created: 2023-08-01T07:34:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T13:59:44.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T01:14:52.312Z (over 1 year ago)
- Language: Solidity
- Size: 25.4 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Portfolio ERC20 Wrapper
Wrap Portfolio liquidity pool tokens into ERC20!
## Overview
Portfolio positions are represented as ERC1155 tokens, this wrapper allows you to convert one or multiple of these tokens into a single ERC20 token.
## How does it work?
Wrapped tokens are deployed by calling the `deploy()` function of the factory contract and passing the following parameters:
| Parameter | Description |
|---|---|
| name | Name of the ERC20 token |
| symbol | Symbol of the ERC20 token |
| poolIds | Array of pool ids to wrap |
Please note that the factory contract is linked to a specific Portfolio contract, so the pool ids must exist in that specific contract. You can check the address of the Portfolio contract in the factory contract by calling `PORTFOLIO()`.
## Current deployments
| Network | Address |
|---|---|
| Sepolia | [0xDccA88Cd8eEA8d5ff81cC7a2382B865240668444](https://sepolia.etherscan.io/address/0xDccA88Cd8eEA8d5ff81cC7a2382B865240668444) |