No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
Contract-Fillable 0x Liquidity for Fulcrum using the 0x-Standard API
bzxnetwork
DeFi
# Prize Bounty
$1,500
# Challenge Description
Currently Fulcrum sources liquidity for opening and closing margin positions from KyberSwap. The objective of this bounty is to write robust client-side Typescript code for sourcing 0x order objects using the 0x APIs from RadarRelay (https://developers.radarrelay.com/).
Please visit https://fulcrum.trade to familiarize yourself with the UI. A winning submission would need to run in the user’s browser when they submit to open a trade. Based on the size of the trade, liquidity needs to be sourced from RadarRelay and submitted along with the trade in the form of an array of one or more 0x orders. Each order should be the format represented by this solidity struct:
```
struct Order0x {
address makerAddress; // Address that created the order.
address takerAddress; // Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order.
address feeRecipientAddress; // Address that will recieve fees when order is filled.
address senderAddress; // Address that is allowed to call Exchange contract methods that affect this order. If set to 0, any address is allowed to call these methods.
uint256 makerAssetAmount; // Amount of makerAsset being offered by maker. Must be greater than 0.
uint256 takerAssetAmount; // Amount of takerAsset being bid on by maker. Must be greater than 0.
uint256 makerFee; // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to 0, no transfer of ZRX from maker to feeRecipient will be attempted.
uint256 takerFee; // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to 0, no transfer of ZRX from taker to feeRecipient will be attempted.
uint256 expirationTimeSeconds; // Timestamp in seconds at which order expires.
uint256 salt; // Arbitrary number to facilitate uniqueness of the order's hash.
bytes makerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring makerAsset. The last byte references the id of this proxy.
bytes takerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring takerAsset. The last byte references the id of this proxy.
bytes signature; // Signature for the order
}
```
After being passed with the trade, Fulcrum will act as “taker” for each 0x order presented until the full amount of the margin trade has been filled.
For reference the bZx protocol has a 0x wrapper that will work similarly to the Fulcrum wrapper:
https://github.com/bZxNetwork/bZx-monorepo/blob/development/packages/contracts/contracts/zeroex/BZxTo0xV2.sol
Please note, this is just a reference and can’t be used as part of this bounty. This bounty only involves front-end code for sourcing appropriate 0x liquidity.
# Submission Requirements
The submission should be fully functional, allowing Fulcrum positions to draw liquidity from 0x.
# Submission Deadline
August 15th
# Judging Criteria
The first team to submit the code allowing Fulcrum to supplement Kyber liquidity with 0x will be awarded the bounty. There will be no pro-rata awards for partially realized implementations.
# Winner Announcement Date
August 20th
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
Setup your profile
Our tools are based on the principles of earn (💰), learn (📖), and meet (💬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Back
Next
Save
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email:
Email
Back
Save