https://github.com/slice-so/contracts-pricing
Product pricing strategies for Slice products
https://github.com/slice-so/contracts-pricing
Last synced: 4 months ago
JSON representation
Product pricing strategies for Slice products
- Host: GitHub
- URL: https://github.com/slice-so/contracts-pricing
- Owner: slice-so
- License: mit
- Created: 2022-08-31T23:22:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T09:59:18.000Z (11 months ago)
- Last Synced: 2024-05-30T02:29:35.126Z (11 months ago)
- Language: Solidity
- Homepage: https://slice.so
- Size: 312 KB
- Stars: 37
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - slice-so/contracts-pricing - Product pricing strategies for Slice products (Solidity)
README
# Slice pricing strategies
This repo contains custom pricing strategies for products sold on [Slice](https://slice.so).
Each strategy inherits the [ISliceProductPrice](/src/Slice/interfaces/utils/ISliceProductPrice.sol) interface and serves two main purposes:
- Allow a product owner to set price params for a product via `setProductPrice`;
- Return product price via `productPrice`;## Strategies
### VRGDA
Variable Rate Gradual Dutch Auctions. Read the [whitepaper here](https://www.paradigm.xyz/2022/08/vrgda).
Slice-specific implementations modified from https://github.com/transmissions11/VRGDAs:
- [Linear VRGDA](/src/VRGDA/LinearVRGDAPrices.sol)
- [Logistic VRGDA](/src/VRGDA/LogisticVRGDAPrices.sol)### ERC721 Gated Discount
A discount strategy that allows a product owner to set a discount for a product if the buyer owns a specific ERC721 token.
- [ERC721 Gated Discount](/src/ERC721GatedDiscount/ERC721GatedDiscount.sol)
## Contributing
You will need a copy of [Foundry](https://github.com/foundry-rs/foundry) installed before proceeding. See the [installation guide](https://github.com/foundry-rs/foundry#installation) for details.