Skip to content
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

Add ERC4626 & Kiln DeFi registry #86

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

kilnmg
Copy link

@kilnmg kilnmg commented Nov 16, 2024

Added ERC4626 in the erc folder:

  • https://eips.ethereum.org/EIPS/eip-4626
    Todo:
    Need to find a better way to make it generic over multiple deployments as of today it's looks like it's always getting : .deployments.[0] while with ERC4626 DeFi protocols will have a lot of vaults to add in the registry.
    "params": {
        "tokenPath": "$.context.contract.deployments.[0].address"
    }

Added a new registry for Kiln DeFi contracts:

Preview:
ERC4626-Deposit

Opening a PR for a more advanced review on : http://app.devicesdk.ledger-test.com/

@github-actions github-actions bot added the descriptors Changes to clear signing descriptors label Nov 16, 2024
…the kiln registry deployments

ERC-4626 MUST implement EIP-20
Added the ASSET in the registry to define the ERC-20 used by the user to deposit on the vault.
@kilnmg kilnmg marked this pull request as ready for review November 16, 2024 16:20
@kilnmg kilnmg requested review from LL782, pdeville-ledger and a team as code owners November 16, 2024 16:20
Copy link
Collaborator

@jnicoulaud-ledger jnicoulaud-ledger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand what you are trying to do, but unfortunately it's not possible in the current form:

  • constants are restricted to $.metadata.constants
  • extra fields in deployments are not allowed
  • referencing a value "for current deployment" is not possible

I think you can achieve what you want this way:

  • in the ERC file, define your display section, using $.metadata.constants.asset, and other constant stuff such as ABI
  • then create one calldata file per deployment, it will only contain deployments section + metadata.constants.asset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
descriptors Changes to clear signing descriptors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants