npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@poolzfinance/refund-provider

v1.0.3

Published

[![Build and Test](https://github.com/The-Poolz/LockDealNFT.RefundProvider/actions/workflows/node.js.yml/badge.svg)](https://github.com/The-Poolz/LockDealNFT.RefundProvider/actions/workflows/node.js.yml) [![codecov](https://codecov.io/gh/The-Poolz/LockDe

Downloads

18

Readme

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.