Skip to content

Commit

Permalink
Merge pull request #326 from kodadot/issue-swaps-surcharge
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival authored Nov 29, 2024
2 parents 39ac052 + a51c627 commit 2dd783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/nfts/createSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export async function handleCreateSwap(context: Context): Promise<void> {
final.desired = desired
final.expiration = deadline
final.price = event.price
if ('surcharge' in final) {
final.surcharge = event.surcharge
if (!offer) {
(final as Swap).surcharge = event.surcharge
}
final.status = final.blockNumber >= deadline ? TradeStatus.EXPIRED : TradeStatus.ACTIVE
final.updatedAt = event.timestamp
Expand Down

0 comments on commit 2dd783e

Please sign in to comment.