Honorable, but basically flawed.
Your relationship with your friends will change because of something like that, it is very very nice of you to want to share the wealth, but someone that has a sense of honour themselves will either have to refuse your offer or they will accept and it will hurt their sense about themselves.
Should you ever find such wealth be very careful how you approach your friends with such plans. If someone in my circle of friends would make me an offer like that I'd see that as an intrusion, even if it was meant well. Just that you got into some money does not mean that you have the right to 'fix' others lives, they may get a lot more satisfaction out of fixing it themselves.
Giving money away is a very tricky thing to do if you do not wish to change your relationship with people.
But kudos for looking after others, I really appreciate that that would be one of the first things you'd think of.