swaprhq / swapr-expeditions-services Goto Github PK
View Code? Open in Web Editor NEWSwapr API: expeditions
Home Page: https://api.swapr.site/v1.0/documentation
License: MIT License
Swapr API: expeditions
Home Page: https://api.swapr.site/v1.0/documentation
License: MIT License
The staking calculation is not accurate.
One endpoint to return:
I have little knowledge about NoSQL dbs so we would need to find a way to be able to migrate data & do backups. Where are we going to host db @adamazad ?
AC
POST /expeditions/weekly-fragments/claim
accepts: address
, signature
, and type
. type
is an enum.getWeeklyFragments
to WeeklyFragmentService
: a wrapper on top of the two main methods to get fragments.AC
GET /expeditions/weekly-fragments
accepts an additional parameter: week
which is the date in (YYYY-MM-DD) format of the week.
Weekly
Users should be prompted to provide new liquidity, worth at least 50 USD to claim during 5 different weeks. Eligible for 50 fragments, with an additional 50 fragments for each week completed, for a max of 750 throughout the 5-week campaign. Missing a week does not reset the user back to 50, but instead doesn’t increase their next claim.
Weekly
Stake their LP in a reward campaign, users should have staked at least $50 of LP tokens in a DIY farming campaign (maybe one of DXdao deployed campaigns only?). Eligible for 50 fragments, with an additional 50 fragments for each week completed, for a max of 750 throughout the 5-week campaign. Missing a week does not reset the user back to 50, but instead doesn’t increase their next claim.
Currently proposed query:
import { gql } from '@apollo/client';
export const GetLiquidityMiningCampaignDepositsQuery = gql`
query GetLiquidityMiningCampaignDeposits($user: Bytes!, $timestampStart: BigInt!, $timestampEnd: BigInt!) {
liquidityMiningCampaignDeposits: deposits(
where: { user: $user, timestamp_gte: $timestampStart, timestamp_lte: $timestampEnd }
) {
id
amount
timestamp
liquidityMiningCampaign {
id
stakablePair {
id
reserveUSD
token0 {
id
symbol
}
token1 {
id
symbol
}
}
}
}
singleSidedStakingCampaignDeposits(
where: { user: $user, timestamp_gte: $timestampStart, timestamp_lte: $timestampEnd }
) {
id
amount
timestamp
singleSidedStakingCampaign {
stakeToken {
id
symbol
}
}
}
}
`;
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.