2 stable releases

2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023
2.1.5 Jul 6, 2023
2.1.0 Jul 3, 2023

#6 in #funds

Download history 5/week @ 2024-02-19 7/week @ 2024-02-26 64/week @ 2024-04-01

64 downloads per month

BSD-3-Clause

48KB
1.5K SLoC

cw-token-swap

cw-token-swap on crates.io docs.rs

This is an escrow token swap contract for swapping between native and cw20 tokens. The contract is instantiated with two counterparties and their promised funds. Promised funds may either be native tokens or cw20 tokens. Upon both counterparties providing the promised funds the transaction is completed and both sides receive their tokens.

At any time before the other counterparty has provided funds a counterparty may withdraw their funds.

Dependencies

~4–5.5MB
~120K SLoC