Can you explain to me how this transaction work? I was looking at bitcoin rich list and found binance cold wallet

For this transaction in particular https://www.blockchain.com/btc/tx/afb6523e4f5f060a076dcc2f8e5eb7a1aa58a3831456c62da946e2b5a41c24f0 whats going on under the hood? Why is the same address 8 times as input with different balances(?) number ?

Thanks
Bitcoin uses a UTXO (unspent transaction output) model for transactions, see here for why. This means each time you spend a coin you create an output that is assigned to an address (or multiple outputs to different addresses), and those outputs must references previous unspent outputs to your address. You have to spend all of the coins from the utxo, so usually there is a change output that goes back to the original owner (usually a different address that they own, for privacy reasons).


  Because each output of a particular transaction can only be spent
  once, the outputs of all transactions included in the block chain can
  be categorized as either Unspent Transaction Outputs (UTXOs) or spent
  transaction outputs. For a payment to be valid, it must only use UTXOs
  as inputs. - https://bitcoin.org/en/developer-guide#block-chain-overview


You are seeing many unspent outputs on the left that the address 16ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe is using to add up to the values on the right that it wants to send.