Represented authors get to select their charity and either donate all the money to the charity or do a 50/50 split, so the author gets 50% of the royalties.
It warms my heart that most the contracted authors have generously donated all the proceeds to a charity of their choice. That is part of the way we make a better world possible.