Wouldn't it be better to use the swap feature on hiveengine/tribaldex/beeswap and swap to Hive and then ecency to swap to hbd?
Not quite sure how it would be calculated, but usually the dex's haven't got HE tokens directly to HBD, as far as I recall