superfluid-finance / super-examples Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
No response
Create a SharesManager
smart contract to manage and compute the shares of advertisers within our advertising auctioning DApp (GDA Super Example). This contract should handle the logic of share assignment, updating, and querying based on the duration and value of advertisements.
Contract can keep track of state or it can just provide methods to be called. These methods need to make it as easy as possible for us to update the state of a specific advertiser (share holder). For example: a method updateShares
can take as input the address of the advertiser, the number of days they have been advertising and some other inputs to update the state of their current shares. Make sure to take care of edge cases where shares cannot be split, and keep in mind how the GDA pool would interact with these methods.
Feel free to change details of what is mentioned above according to the best way you see fit for the implementation.
TBH it is not a bad security issue. I just wanted to point out that this function does not protect the contract from receiving tokens from someone else since anyone can send tokens via their Metamask to the contract bypassing the revert
money-streaming-intro-foundry/lib
was added to .gitignore
, but not removed. Should also be removed.
Hi, first of all awesome repo! Thanks for the great getting started experience. As I've been going through things, there are just a few issues such as links from the youtube not going to active pages, deployment arguments supplying 2 when the contract calls for 1, file names missing an "s" during console instructions referencing file scripts/transferInSpreaderToken.js
is really scripts/transferInSpreaderTokens.js
, and all the scripts not outputting how is expected on georli. Local works as expected and test suite working as expected, am assuming the script files in the examples must have been updated and just documentation wasn't updated to match? ๐คท๐ผ
Can provide more info as needed, just wanted to alert the team incase they know what I'm talking about and is an easy documentation/code sync update.
No response
Hello fixed error
beginner-examples -> money-streaming ->tokenApproval.js
beginner-examples -> money-streaming ->tokenApproval.js
Superfluid protocol has the capability of distributed money continuously over time, which adds greatly to the design space of the automatic market makers (AMM).
This issue is created to track the discussions, toy modeling and specifications of different designs we have.
Without Constant Flow Distribution Support
All of these would require IDA to trigger frequent distributions.
Code Name | Liquidity Source | Price Oracle |
---|---|---|
Ice Bear | External Dex | From Dex |
Panda | Bootstrapped | From TWAP |
Grizzly | Bootstrapped | FlowSwap ๐ฏ Formula |
With Constant Flow Distribution Agreement Support
Grizzly can be further enhanced with CFDA support in that settlements to downstream will be more smooth over time.
!IMPORTANT!: Due to the delicate security needs of these contracts, we should not release unverified code prematurely to the public.
Based on several conversations with DevX in the last week, I propose that we remove 1 example, and add 2 new examples which provide developers with an easy way to get started with Superfluid in solidity.
These two examples will be created as a part of an effort to build a progressive tutorial for developers new to the protocol.
When a new developer first sees our repo, they currently aren't able to fork an example that implements Superfluid in isolation within a non-super app smart contract. In practice, this is how many hackathon developers build on solidity.
This tutorial will consist of several parts:
We create video guides to accompany each of the 5 above examples. Then, we will place them in a longer guide and single Youtube video or playlist that's similar to what other DevX leaders have done. The following two examples provide an idea of what I'm considering:
The Money Router and Token Spreader contracts should live in a single folder within the examples section of the repo titled 'superfluid-solidity-basics.'
@sunnyjaycer can provide more details on his token spreader IDA example, but the Money Router will do the following:
The simplicity of these 2 new contract scopes will make them easy to maintain.
cc @JoshuaTrujillo15 @sunnyjaycer @ngmachado - what do you guys think about this?
Code line:
I think executeStartVesting
should be replaces with executeStopVesting
as it is never used in the contract.
100000000 <- gaslimit set
30000000 <- max gas there can be in a block
TBD...
No response
At https://github.com/superfluid-finance/super-examples/actions/runs/5692548322 we can see build succeeded on July 28th.
But there is no locking of packages version so now it uses another version of ethereum-contracts which is incompatible with these exemples so it creates build errors.
I've checked https://github.com/superfluid-finance/protocol-monorepo/releases?q=ethereum-contracts&expanded=false and found that 1.7.1
was the latest version available on July 28th.
So I'm preparing a PR to fix this.
[Docs]ย - Review and update links, should be pointing to this repo and not the old one.
Summary:
Develop a decentralized application (DApp) using the Superfluid Protocol's General Distribution Agreement (GDA) to facilitate an advertisement auctioning system. The DApp should allow for continuous streams of funds into a pool, distributing half of the incoming funds to the DApp's initial owner and the other half among former advertisers based on the duration of their advertisements. A real-time auction mechanism should enable the highest current contributor to gain advertising rights on the DApp.
Goals:
Description:
Pool Creation and Admin Setup:
Fund Distribution Logic:
Advertisement Auctioning Mechanism:
Share Allocation Based on Advertisement Time:
DApp Interface:
Smart Contract Development:
Security and Testing:
Acceptance Criteria:
Nice to have:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.