scallop-io / sui-scallop-sdk

This is the typescript sdk for the scallop lending platform on SUI network
Apache License 2.0
29 stars 9 forks source link

feat: optimize get coin implementation #92

Closed fum-is-chum closed 5 months ago

fum-is-chum commented 5 months ago

CHANGES

Instead of querying the coin objects one by one, we use getAllBalance RPC calls to get all coins balance, and then access it individually by its coin type. This greatly reduce the required RPC calls to get coin balance