2

I've planned to do a project on the Elrond Blockchain with an ESDT token.

On the platform, users should swap EGLD to the ESDT, but I can't see any doc on this.

Does someone have an idea about this?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Azerus
  • 25
  • 5

1 Answers1

5

I think you can look over this sample contract:

https://github.com/ElrondNetwork/elrond-wasm-rs/tree/master/contracts/examples/egld-esdt-swap

This is what you need, maybe adapt the ratio (in the sample contract is 1:1).

Mircea
  • 187
  • 6