Isn't the point to make friends by distributing charitably the riches (mammon) that we undeservingly (hence unrighteous mammon) received from God, before we die (fail) or before we waste it (i.e. when it fails)?
maybe. But there seems to be a fine line between the son who wasted his living yet was found. And the one who pouted when that which was lost was received again, after wasting all he had on riotous living. (Luke 15:26-32 ...And he answering said to his father, Lo, these many years do I serve thee, neither transgressed I at any time thy commandment: and yet thou never gavest me a kid, that I might make merry with my friends: [30]
But as soon as this thy son was come, which hath devoured thy living with harlots, thou hast killed for him the fatted calf. [31] And he said unto him, Son, thou art ever with me, and all that I have is thine. [32] It was meet that we should make merry, and be glad: for this thy brother was dead, and is alive again; and was lost, and is found.
restored and reconciled to the Father. Luke 16:11 If therefore ye have not been faithful in the unrighteous mammon, who will commit to your trust the true riches ?
Hebrews 10:32-35 But call to remembrance
the former days, in which, after ye were illuminated, ye endured a great fight of afflictions; [33] Partly, whilst ye were made a gazingstock both by reproaches and afflictions; and partly, whilst ye became companions of them that were so used. [34] For ye had compassion of me in my bonds, and took joyfully
the spoiling of your goods, knowing in yourselves that ye have in heaven
a better and an enduring substance. [35] Cast not away therefore your confidence, which hath great recompence of reward.