Git Product home page Git Product logo

lockdealnft.refundprovider's Introduction

RefundProvider

Build and Test codecov CodeFactor

RefundProvider introduces a comprehensive contract that implement the Risk Free and Secured models. The RefundProvider smart contract is designed to enable flexible interactions with providers of various parameter lengths. The contract is abstracted from the specific provider it works with and can seamlessly integrate with DealProvider, LockProvider, and TimedProvider to perform all its functionalities.

User

User interacting with the RefundProvider contract have the following rights and capabilities:

  • Split: have the right to divide owned pools into separate entities. This functionality enables to split tokens into multiple pools, each with a distinct number of tokens. When the split occurs, the corresponding Main Coin pools are also separated, and they are specifically designated for use in refund processes.

  • Withdrawal: can withdraw tokens from its own pools. This action allows users to withdraw a portion of their tokens from a specific pool, depending on the provider's settings.

  • Refund: also have the option to initiate a refund process for tokens locked in pools. When a refund is initiated, a predetermined number of Main Coins are exchanged for the Locked Tokens In this process, the user receives the Main Coins in exchange for tokens, effectively transferring ownership of the tokens to the refund provider.

Users are granted a specific window of time during which they can swap their tokens for Main Coins at a predefined ratio. This feature enables users to exchange their tokens for the primary currency within the designated time frame

Project Owner

The Project Owner refers to the original creator of the RefundProvider pools. The Project Owner assumes the following roles and responsibilities:

  • Refund Process Limit: The Project Owner has the authority to set a time limit for the availability of the refund process. Once this period expires, the swapping of tokens for Main Coins will no longer be possible, and the Project Owner can reclaim the locked Main Coins.

  • Main Coin Pool: If a user has withdrawn a portion of their tokens, a pool containing a certain ratio of Main Coins is created specifically for the Project Owner. This pool remains accessible to the Project Owner without any time limitations.

  • Ownership of Tokens after refund: In cases where a user initiates a refund and exchanges their tokens for Main Coins, the ownership of the tokens is transferred to the Project Owner. Consequently, the Project Owner becomes the rightful owner of the tokens exchanged during the refund process.

lockdealnft.refundprovider's People

Contributors

youstillalive avatar

Watchers

 avatar

lockdealnft.refundprovider's Issues

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.