Giter VIP home page Giter VIP logo

separate-staking-reward-erc4626-vault's People

Contributors

cjhare avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

separate-staking-reward-erc4626-vault's Issues

[Feature] Emergency Withdraw

Feature Description

New function to allow the staker to withdraw their stake and forfeit any and all rewards for their time staking that are owed.

The contract has a trust assumption that the admin will transfer adequate rewards in a timely fashion (as withdraw will revert when there aren't enough rewards), this function will keep the users stake safu.

Mutation of emergency withdraw on asset and shares is identical to a normal withdraw.

Additional Information

[Feature] Rename repo to include ERC 4626

Feature Description

Rename the GitHub repo to include the term ERC 4626

Additional Information

The vault being a specialization of the ERC4626 implementation, including that term in the title gives a better intuitive description.

[Feature] Function exposure narrowing

Feature Description

Some public function can be made 'external' and others 'private', besides better encapsulation, 'external' costs less gas that 'public', ...'private' even less.

Additional Information

[Feature] ERC20 Recovery

Feature Description

ERC20 Token sweeper; a mechanism for recovering tokens that have been transferred to the contract.

Restriction: the asset may only be recovered when there are no shares remaining.

Security: contract to have a owner (Ownable) with the recovery function being guarded by isOwner` modifier.

Additional Information

Production ready? :)

@CjHare Very good idea, this is probably the first ERC-4626 vault implementation where the reward token is different from the underlying token!

Is it production ready yet, or are there still things to be added? ๐Ÿ™‚

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.