sora-xor / pricing-server

Analytics server for Polkaswap
Apache License 2.0
5 stars 4 forks source link

Fixed swaps for non-dirct XOR swaps #53

Closed pgolovkin closed 2 years ago

pgolovkin commented 2 years ago

The problem was with the account address of the intermediate XOR account. I've checked a few transactions https://sora.subscan.io/extrinsic/0x0ff47aef991168beb5d50f6427f794e2b92273b682907649a00a94abcbb88471 https://sora.subscan.io/extrinsic/0x0af787f5c4c84368372cc46f55ae293af5873841b0fc4958bf22392330c5adfb

And I'm getting the following address

"event_index": null,
        "module_id": "Balances",
        "event_id": "Endowed",
        "attributes": [
            {
                "type": "AccountId",
                "value": "cnTQ1kbv7PBNNQrEb1tZpmK7ftiv4yCCpUQy1J2y7Y54Taiaw"
            },
            {
                "type": "Balance",
                "value": 308518068319501973
            }
        ],