On the mainnet, I see several contracts that can be called with the function 'wrapEgld' and 'unwrapEgld'.
ex:
https://explorer.elrond.com/transactions/ac76c2967ab5ef3c72bd713e7c1f8a78770ae2b1f78f40b2f627fe9850f9bda2
https://explorer.elrond.com/transactions/77c59079c748bb3b3472195ca8f3bd8535fe20cf8d242153f8d04f72c1a16fbd
How does this work?
Is there a contract per shard?
Is there a list of available contracts somewhere?
yes, there is one wrap/unwrap contract for each shard
you can check out the contract addresses in this non-documented api endpoint: https://api.elrond.com/mex/settings (wrapContracts)
yes, there is one wrap/unwrap contract for each shard you can check out the contract addresses in this non-documented api endpoint: https://api.elrond.com/mex/settings (wrapContracts)