stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
65 stars 68 forks source link

Add router contracts for single offer and liquidity pool contracts #48

Closed sisuresh closed 2 years ago

sisuresh commented 2 years ago

The current single offer and liquidity pool contracts follow a model where tokens need to be transferred to the contract methods like trade or deposit are called in the same transaction. A "router" contract is required to safely run these contract functions, so we should provide these examples as well.

sisuresh commented 2 years ago

Closed by #60