Skip to content

Commit

Permalink
fix: grammar stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
0xneves committed May 30, 2023
1 parent 16a59bf commit 38048f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ B) Users accept available Swaps.

Detailed:

A) User call public pure function `composeSwap`.
A) User calls public pure function `composeSwap`.

B) User provides allowances for the biding assets.

Expand Down Expand Up @@ -83,7 +83,7 @@ The usage is on-chain focused, but when working with off-chain, the Swap struct

Similar to `makeSwap`, compose Swap will build the entire Swap in a single function and return the Swap struct. Different from the make Swap function, which requires pre-built assets, `composeSwap` will receive as parameters all the data from the assets involved in the Swap in three arrays of data, corresponding to the Asset struct requirement.

To avoid having six arrays as parameters for both assets bided or asked, both of them should be placed in the same array and then specify the `uint256` integer representing the place at the index where the assets bided will turn assets asked. The variable `indexFlipToAsking` is the length of bided assets and also the beginning index of the assets being asked to fulfill the Swap.
To avoid having six arrays as parameters for both assets bid or asked, both of them should be placed in the same array and then specify the `uint256` integer representing the place at the index where the assets bid will flip assets asked. The variable `indexFlipToAsking` is the length of bid assets and also the beginning index of the assets being asked to fulfill the Swap.

```solidity
function composeSwap(
Expand Down

0 comments on commit 38048f4

Please sign in to comment.